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 + ')');
|
let res = eval('(' + data.xhr.responseText + ')');
|
||||||
});
|
});
|
||||||
this.on("error", function(file, message) {
|
this.on("error", function(file, message) {
|
||||||
$('.alert').html('');
|
if ($('#errorMsg').length > 0) {
|
||||||
$('#errorZone').append(message.error);
|
$('#errorMsg').remove();
|
||||||
|
}
|
||||||
|
$('#errorZone').append(`<span id="errorMsg">${message.error}</span>`);
|
||||||
$('#errorZone').show();
|
$('#errorZone').show();
|
||||||
});
|
});
|
||||||
this.on('sending', function(file, xhr, formData) {
|
this.on('sending', function(file, xhr, formData) {
|
||||||
|
Loading…
Reference in New Issue
Block a user