File upload
Regarding removal of files when selecting multiple
There is no direct way of removing one element or more from the list
of files to be uploaded. You can however remove all by reselecting
the desired files.
But, you can do it the hard way:
- Copy the FileList object into an array
- Remove element from the copied array
-
When uploading via AJAX (only known way so far), only pass the
desired files
File upload multiple files
File upload button multiple files