im having a bit of a problem and i just can't figure out how to solve it.
I want to upload 1 file multiple times in different folders.
im using org.apache.commons.fileupload to do the uploading part.
If i upload a file to one folder it is working great, when i try to loop through multiple folders and try to upload a file mmultiple times it will only succeed only the first time (Its like you can use httprequest only 1 time), after this it will loop but dont upload the file anymore.
any help is very much appreciated tnx [ July 14, 2006: Message edited by: Ivo Delver ]
I'm no weblogic person, but I'd look at that UploadFileHandler class to make sure there are no file closure or connection closure issues that are causing the problem.
Sun Certified Java 2 Programmer
Joined: Jan 20, 2003
Originally posted by Paul Clapham: This is exactly correct. If you want to read the uploaded data and write it to several different files, then you need a design that reads the uploaded data only once.
I think i will upload the file once to a temp dir, and then move it multiple times to the right folders