solvit.io

Upload multiple files with a single HTML input file

Solution #1

Add the multiple attribute to the <input> element:

<form action="..." method="...">
    <input type="file" name="uploaded_files" multiple>
</form>
Solution #2

If you can't use HTML5 or prefer a more advanced uploader, use the Dropzone.js JavaScript library.

Find more solutions about: , , , ,