• 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

Can I upload multiple files at one time?

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I want to do is:
User selects multiple image files in one file control box, then submit all those files to the server by click "Submit".
Can I do this? I think the "Input type= "File"" control only allows user to select one file.
How can I do multiple uploading? I do not want to use one control box for one file though. Also, if on the client side I can do this, how about the Server side package? which package can handle multiple files in one NAME?
Thanks!
------------------
Sun Certified Programmer for Java Platform
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is like asking "I want 5 people to sit on 4 chairs, but no one can share a chair".

Client side: The file upload control allows a *single* file to be entered. If you want more than one file upload on a form, use more than one file upload control.

Server side: Since it's a basically impossible (for now) task to stuff two files into a single logical 'file upload' segment on the multipart request, there are no packages that would understand your POST.
 
reply
    Bookmark Topic Watch Topic
  • New Topic