Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading one file multiple times

 
Ivo Delver
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bump, anyone?
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ivo Delver
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic