Upload errors show up and can be closed properly
This commit is contained in:
parent
f7e92f81af
commit
dfcecd47e0
@ -66,8 +66,10 @@ $('#multiFileUpload').dropzone({
|
||||
let res = eval('(' + data.xhr.responseText + ')');
|
||||
});
|
||||
this.on("error", function(file, message) {
|
||||
$('.alert').html('');
|
||||
$('#errorZone').append(message.error);
|
||||
if ($('#errorMsg').length > 0) {
|
||||
$('#errorMsg').remove();
|
||||
}
|
||||
$('#errorZone').append(`<span id="errorMsg">${message.error}</span>`);
|
||||
$('#errorZone').show();
|
||||
});
|
||||
this.on('sending', function(file, xhr, formData) {
|
||||
|
Loading…
Reference in New Issue
Block a user