-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Comment for the closed issue #1779 #1788
Comments
There are some enhancements provided - but some of your other experience is not expected (e.g. why your file name is not getting displayed in errors). Anyway, for clarifying this enhancement, to the SCENARIO 1
|
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
Thank you for the fix #1779
I am a little unsure though what is the expected behavior for the option when data is being passed. The comment states that it is to show error specific to each file. Does this mean that file name will be displayed in front of the error message? Currently it does not display.
Below is the code I use and here is the screenshot of the output. I was uploading 3 files and got 1 error, which is displayed as a custom error message. There is no file specific data (such as filename) in the error. Data contains the fileId property.
By the way the description for (enh #1779): New plugin method showUserError and new event fileusererror.
However, in the code sample that follows fileuploaderror is shown and not fileusererror. I tried using fileusererror event, does not seem to work.
Expected behavior and actual behavior
I was also expecting to continue getting other messages such as when maximum number of files is reached. I am not getting the message anymore, it is replaced with userMessage. See screenshot.
Based on the settings below I expect to see 'Maximum number of files is 5.' when I add file number 6 instead of 'We could not process the upload because of a server error.'
Here are my settings.
Same with these settings. I see 'We could not process the upload because of a server error.' instead of message defined in msgFilesTooMany setting.
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: