Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Folder Upload using Java(MultiPartRequest)

 
Manoj Pooleery
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic