Show error toast when file size exceeds the limits (#27985)
As title. Before that, there was no alert at all. After: 
This commit is contained in:
parent
481e738e7f
commit
6c9e196e54
1 changed files with 4 additions and 0 deletions
|
@ -247,6 +247,10 @@ export function initGlobalDropzone() {
|
|||
});
|
||||
}
|
||||
});
|
||||
this.on('error', function (file, message) {
|
||||
showErrorToast(message);
|
||||
this.removeFile(file);
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue