Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Folder Upload using Java(MultiPartRequest)

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic