Fix checkpoint issues in onlyoffice

This commit is contained in:
yflory
2020-03-18 13:27:12 +01:00
parent 4484cda9b6
commit 7254d093a3
3 changed files with 47 additions and 20 deletions

View File

@@ -162,6 +162,9 @@ define([
// then we could check if a file is too large without going to the server...
queue.inProgress = false;
queue.next();
if (config.onError) { config.onError(e); }
if (e === 'TOO_LARGE') {
$pv.text(Messages.upload_tooLargeBrief);
return void UI.alert(Messages.upload_tooLarge);