I am looking for some way to create a queue of sorts for a file upload button. With the following code:
<input type = 'file' name = 'file[]' multiple = 'multiple' />
Modern browsers let you select multiple files at once to upload. However, if you click on the button again and choose more files (say from a different folder) it deletes the currently selected files. Is there any way to have the newly selected set of files not overwrite the old set?
Yes, there is a way which I used.
Listen this; when user selects files, hide this input with CSS and generate another input with different name. You will need an information how many of them there, for such a reason you can add a hidden input with initial value 1, and you can +1 each time.
Hope this helps.