I have come across a weird scenario where File upload functionality stops working completely, even it doesn't throw any validation error if you try to upload a file with invalid extension.
Steps to reproduce this bug:-
1. Upload a valid file using File widget
2. Now remove the uploaded file
3. Now try to upload a file type which is not in the allowed extension list
Expected Result: It should throw a validation error saying that File can't be uploaded and should list the allowed file extension names.]
Actual Result: It doesn't throw any error on file element change event and on click of "Upload" button also nothing happens.
Comments
Comment #1
mepushpendra commentedComment #2
David_Rothstein commentedThis sounds like a duplicate of #1074214: Wrong file extension JS error is hidden after an upload has already been attempted (e.g., after adding then removing a file). Please reopen if I'm mistaken.
Comment #3
mepushpendra commentedYes David, it is same issue #1074214 which you have mentioned above. Thanks for the info btw.