From: Joas Schilling Date: Fri, 4 Sep 2020 06:51:35 +0000 (+0200) Subject: Better error message when blocked by access control X-Git-Tag: v20.0.0beta4~63^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F22577%2Fhead;p=nextcloud-server.git Better error message when blocked by access control Signed-off-by: Joas Schilling --- diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 1e54d32e55f..691131293a8 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -1303,6 +1303,8 @@ OC.Uploader.prototype = _.extend({ self.cancelUploads(); } else if (status === 409) { OC.Notification.show(message || t('files', 'Target folder does not exist any more'), {type: 'error'}); + } else if (status === 403) { + OC.Notification.show(message || t('files', 'Operation is blocked by access control'), {type: 'error'}); } else { OC.Notification.show(message || t('files', 'Error when assembling chunks, status code {status}', {status: status}), {type: 'error'}); }