25) File and Directory Manipulation.

 

back to main index

 

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:

1.              Load balancing disk usage when uploading a large amount of files of considerable individual file size.

 

2.             Copying the same file to many locations on a network .

 

3.             Sorting a directory for insertion of details into a database without using a HttpServletRequest object.

 

 

 

 

 

 

 

© Gubutech(Xload) 2006  (v1.2)