]> source.dussan.org Git - nextcloud-server.git/commitdiff
Better error message when blocked by access control 22577/head
authorJoas Schilling <coding@schilljs.com>
Fri, 4 Sep 2020 06:51:35 +0000 (08:51 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 4 Sep 2020 06:51:35 +0000 (08:51 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/files/js/file-upload.js

index 1e54d32e55f59d9a7d4a6e5a254fcda484da3ce3..691131293a851a47f892397e77a06b3e785c2ab6 100644 (file)
@@ -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'});
                                                }