• Post Reply Bookmark Topic Watch Topic
  • New Topic

multiple file upload with single element

 
k sabeerdeen
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..
in server i want to upload multiple files with single element.. can any one give complete sample code? in net no complete code available just partial code alone there.. including me many will get benefit.. thanks in advance!
 
Devaka Cooray
Marshal
Posts: 5158
481
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
k sabeerdeen wrote:can any one give complete sample code?

Nope, sorry
That's not how JavaRanch works - please have a look at NotACodeMill
For your requirement, you can use something like Apache Commons Upload, which can be used to upload multiple files specified in a single HTML form.
 
Paul Okeke
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get some help with Apache File Upload http://commons.apache.org/fileupload/using.html
 
Vikas Aggarwal
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not possible to upload multiple files using only 1 <input type="file"> html tag. New web2.0 sites these days using ajax, or flash to acheive the same. There are a lot of open source flash based modules available. There few commercial ones as well.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!