aspose file tools*
The moose likes BEA/Weblogic and the fly likes Uploading one file multiple times Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Uploading one file multiple times" Watch "Uploading one file multiple times" New topic
Author

Uploading one file multiple times

Ivo Delver
Greenhorn

Joined: Jan 20, 2003
Posts: 7
Hi Guys / Girls,

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 ]
Ivo Delver
Greenhorn

Joined: Jan 20, 2003
Posts: 7
Bump, anyone?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Its like you can use httprequest only 1 time
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.
Darryl Failla
Ranch Hand

Joined: Oct 16, 2001
Posts: 129
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.


Darryl Failla
Sun Certified Java 2 Programmer
Ivo Delver
Greenhorn

Joined: Jan 20, 2003
Posts: 7
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Uploading one file multiple times