Unallowed file suffixes cause allowed files to turn into error icons
Prerequisites
- [maybe] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [√] The issue still exists against the latest
masterbranch of bootstrap-fileinput. - [√] This is not an usage question. I confirm having read the plugin documentation and demos.
- [√] This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
- [√] I have attempted to find the simplest possible steps to reproduce the issue.
- [ ] I have included a failing test as a pull request (Optional).
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.
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 “!” .
Environment
Browsers
- [ ] Google Chrome
- [ ] Mozilla Firefox
- [ ] Internet Explorer
- [√ ] Edge
- [ ] Safari
Operating System
- [√] Windows
- [ ] Mac OS X
- [ ] Linux
- [ ] Mobile
Libraries
- jQuery version:3.7.1
- bootstrap-fileinput version:
Isolating the problem
- [ ] This bug happens on the plugin demos page
- [ ] The bug happens consistently across all tested browsers
- [ ] This bug happens when using bootstrap-fileinput without other plugins
- [ ] I can reproduce this bug in a jsbin