26) File and Directory Manipulation. |
Below, are some examples of using Xload to handle complex environments and results of file uploads. Each example shows one way to deal with each situation and there are other ways in which each scenario can be dealt with using Xload. How you deal with each scenario really depends upon your specification of what result you want to give the user which can be very varied. Remember, when partial uploads are NOT being allowed then any IO Error that occurs will halt the upload and put the system back to before the upload took place (IOException being thrown by the upload() method). When partial uploads ARE being allowed then when some IO Error occurs it just becomes another type of upload failure for a file upload if it occurred while uploading or writing the file.
Examples:
2. Copying the same file to many locations on a network .
© Gubutech(Xload) 2006 (v1.2)