When running the code above, I expect to get an error telling me the file extension of the file I have dragged into the box/selected is invalid. This does not happen but get a blank red bar instead.
If I remove "allowedFileExtensions", it works. Or if I remove "uploadUrl" it works. Or if I remove the "filebatchselected" event, it works. But if all 3 are present, it doesn't work. The file "ajax.php" does not have any affect (in one testing scenario it existed and in another it didn't and the issue persisted).
The only thing that causes the above code to work properly, that I have found, is adding "minFileCount:1" (when "maxTotalFileCount:1" exists) to the code, which seems to trigger a second error and then all of them are displayed.
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
Expected behavior and actual behavior
When running the code above, I expect to get an error telling me the file extension of the file I have dragged into the box/selected is invalid. This does not happen but get a blank red bar instead.
If I remove "allowedFileExtensions", it works. Or if I remove "uploadUrl" it works. Or if I remove the "filebatchselected" event, it works. But if all 3 are present, it doesn't work. The file "ajax.php" does not have any affect (in one testing scenario it existed and in another it didn't and the issue persisted).
The only thing that causes the above code to work properly, that I have found, is adding "minFileCount:1" (when "maxTotalFileCount:1" exists) to the code, which seems to trigger a second error and then all of them are displayed.
Environment
Browsers
Operating System
Libraries
Isolating the problem