You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 25, 2023. It is now read-only.
when files are added, "filetype not allowed" message is correctly shown but when "start uploads" is clicked, the disallowed filetype is uploaded anyway. The file is unnecessarily transferred to be only rejected by, hopefully, server side checks.
adding an additional check for !data.files[0].error in jquery.fileupload-ui.js fixes the bug for me but I am not sure if this is the best way.
_startHandler: function (e) {
e.preventDefault();
var button = $(e.currentTarget),
template = button.closest('.template-upload'),
data = template.data('data');
button.prop('disabled', true);
if (data && data.submit && data.files[0].error ) {
data.submit();
}
},
The text was updated successfully, but these errors were encountered:
i am able to reproduce on the demo using "jQuery UI" version using Firefox 26.0 and Chrome 32.0 . Please try uploading an exe file. Both "Start" & "Start Uploads" buttons are enabled. After clicking it, you will see the progress bars moving.
Looks like you tested with "Basic Plus UI".
This commit recently fixed the bug for "Angular JS" version. 46fea69
when files are added, "filetype not allowed" message is correctly shown but when "start uploads" is clicked, the disallowed filetype is uploaded anyway. The file is unnecessarily transferred to be only rejected by, hopefully, server side checks.
adding an additional check for !data.files[0].error in jquery.fileupload-ui.js fixes the bug for me but I am not sure if this is the best way.
The text was updated successfully, but these errors were encountered: