I'm having trouble uploading multiple images because the array of the files get's overwritten when I only select one image at a time.
Here is the HTML I'm using:
<input type="file" id='files' name="files[]" multiple/>
I'm using Javascript to display the selected Images and I'm giving the user the option to remove them if they must.
Now let's say you select one image to upload, and select one after that as well, the Javascript will display two images. But when I use this:
$("#files")[0].files
It only displays one file, because the entire array was overwritten as the user selected two images not at once, but separately. So how can I make the user select two images separately and still get the entire list?