summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-04 08:51:35 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-09-04 13:53:18 +0000
commit94f4e5142fc729f218b8c3635a736e9451ec5395 (patch)
tree33ed696ecc53cc9d9b1c18ab1843e62e919763aa /apps/files/js
parentdc60a812842bb879b5b60393e69152716bc5e7fd (diff)
downloadnextcloud-server-94f4e5142fc729f218b8c3635a736e9451ec5395.tar.gz
nextcloud-server-94f4e5142fc729f218b8c3635a736e9451ec5395.zip
Better error message when blocked by access control
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/file-upload.js2
1 files changed, 2 insertions, 0 deletions
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'});
}