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:

  1. Copy the FileList object into an array
  2. Remove element from the copied array
  3. When uploading via AJAX (only known way so far), only pass the desired files

File upload button

File upload button

File upload multiple files

File upload button multiple files

Drag and drop