aspose file tools*
The moose likes Java in General and the fly likes Folder Upload using Java(MultiPartRequest) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Folder Upload using Java(MultiPartRequest)" Watch "Folder Upload using Java(MultiPartRequest)" New topic
Author

Folder Upload using Java(MultiPartRequest)

Manoj Pooleery
Ranch Hand

Joined: Sep 20, 2000
Posts: 35
Well, the problem is like this. I can upload files physically from the client side to the server side using MultiPartRequest(classes). Going a step further, is it possible to upload an entire folder with the directory structure as it is in the client machine?
Well, the question can be put like this also - is there any possible way to read-in the directory structure of a client machine? (and use the File class?)
Well, hope somebody comes up with something pretty fast as it is my project requirement.
TIA
Rgds
Manoj.
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
I'm assuming you are using a browser, if I remember correctly, browsers do not support folder upload.
If you are using an Java application, you can put the files in an array, use a for loop to upload them.
Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
Originally posted by Manoj Pooleery:
Well, the problem is like this. I can upload files physically from the client side to the server side using MultiPartRequest(classes).
Rgds
Manoj.

I got MultiRequest classes package from om.oreilly.servlet.
Next step what to do???
THanks,
Angela
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Folder Upload using Java(MultiPartRequest)