Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I upload multiple files at one time?

 
Stephen Wei
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic