Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
12 tasks
cccqcccq opened this issue May 21, 2024 · 0 comments
Open
12 tasks

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

cccqcccq opened this issue May 21, 2024 · 0 comments

Comments

@cccqcccq
Copy link

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 master branch 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.
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

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant