FIX: Upload fails silently if it is bigger than max allowed size
This commit is contained in:
parent
03b3e57a44
commit
0a95d2a21f
|
@ -369,7 +369,7 @@ export function displayErrorForUpload(data) {
|
||||||
if (data.jqXHR.responseJSON.message) {
|
if (data.jqXHR.responseJSON.message) {
|
||||||
bootbox.alert(data.jqXHR.responseJSON.message);
|
bootbox.alert(data.jqXHR.responseJSON.message);
|
||||||
} else {
|
} else {
|
||||||
bootbox.alert(data.jqXHR.responseJSON.join("\n"));
|
bootbox.alert(data.jqXHR.responseJSON.errors.join("\n"));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue