• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Uploading one file multiple times

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bump, anyone?
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic