enforce maxUploadSize

This commit is contained in:
ansuz
2018-01-18 12:19:58 +01:00
parent fc8847dae4
commit 02dbe9e458
3 changed files with 5 additions and 2 deletions

View File

@@ -131,11 +131,11 @@ define([
queue.inProgress = false;
queue.next();
if (e === 'TOO_LARGE') {
// TODO update table to say too big?
$pv.text(Messages.upload_tooLargeBrief);
return void UI.alert(Messages.upload_tooLarge);
}
if (e === 'NOT_ENOUGH_SPACE') {
// TODO update table to say not enough space?
$pv.text(Messages.upload_notEnoughSpaceBrief);
return void UI.alert(Messages.upload_notEnoughSpace);
}
console.error(e);