Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple File upload using single servlet request

I want to offer to upload multiple files clicking upload button only once. Can I use multipart to send files? If yes, then how?

P.S.: I don't want to use flash or send one file at a time.

like image 613
Rohit Rehan Avatar asked Feb 18 '13 08:02

Rohit Rehan


1 Answers

In you HTML, you can do the following :

<input accept="image/jpeg,image/gif,image/png" type="file" name="upload[]" multiple/>

adding multiple to the end of your input grants you what you want.

like image 179
syrkull Avatar answered Oct 05 '22 22:10

syrkull