upload: Limit total size of files uploaded by a user to 1GB.

Fixes #3884.
This commit is contained in:
Philip Skomorokhov
2017-03-02 13:17:10 +03:00
committed by Tim Abbott
parent 777b7d4cb7
commit 866a7b06b2
7 changed files with 93 additions and 3 deletions

View File

@@ -1109,6 +1109,10 @@ $(function () {
case 'REQUEST ENTITY TOO LARGE':
msg = i18n.t("Sorry, the file was too large.");
break;
case 'QuotaExceeded':
msg = i18n.t("Upload would exceed your maximum quota."
+ " Consider deleting some previously uploaded files.");
break;
default:
msg = i18n.t("An unknown error occured.");
break;