kartik-v / bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x/4.x./3.x with file preview, multiple selection, and more features.
http://plugins.krajee.com/file-input
Other
5.36k stars 2.39k forks source link

When upload multiple files, always files with error are removed #1853

Open alphp opened 10 months ago

alphp commented 10 months ago

When uploading multiple files, files with errors are always removed even with removeFromPreviewOnError = false

DEMO: https://fileinput.rf.gd/ https://github.com/alphp/bootstrap-fileinput-ajax-test

Steps to reproduce the issue

  1. Upload one JPG
  2. Repeat step 1: Throw error when try to upload files duplicates image
  3. Reload page
  4. Try to upload new jpg and the first (step 1): The new file uploads without error. The duplicate file throws an error and is removed from the list despite having removeFromPreviewOnError: false. image