Skip to content

Commit 3c62767

Browse files
Merge pull request #22577 from nextcloud/bugfix/noid/better-error-when-chunk-assembling-is-denied
Better error message when blocked by access control
2 parents 24d1d93 + 3fb6a62 commit 3c62767

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/files/js/file-upload.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,8 @@ OC.Uploader.prototype = _.extend({
13031303
self.cancelUploads();
13041304
} else if (status === 409) {
13051305
OC.Notification.show(message || t('files', 'Target folder does not exist any more'), {type: 'error'});
1306+
} else if (status === 403) {
1307+
OC.Notification.show(message || t('files', 'Operation is blocked by access control'), {type: 'error'});
13061308
} else {
13071309
OC.Notification.show(message || t('files', 'Error when assembling chunks, status code {status}', {status: status}), {type: 'error'});
13081310
}

0 commit comments

Comments
 (0)