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

Unallowed file suffixes cause allowed files to turn into error icons #1861

Open cccqcccq opened 6 months ago

cccqcccq commented 6 months ago

Prerequisites

Steps to reproduce the issue

1.I downloaded the sample(bootstrap-fileinputv5.5.4) index-bs5 from the website and ran it in the browser.

2.When I upload multiple files and a disallowed file extension in the multilingual file upload example, all the files become Ajouter erreur, and the image that should have been uploaded successfully has an additional upload failure icon.

3.Only the images selected in the red box are the ones I chose to upload, i.e. I only selected 4 images and did not click the upload button. image

Expected behavior and actual behavior

I would like to match the results of the upload example in Demo, i.e. only images uploaded incorrectly turn into file upload failure icons, while images uploaded successfully still have the icon “+” instead of “!” . image

Environment

Browsers

Operating System

Libraries

Isolating the problem