Merge pull request #22591 from nextcloud/backport/22577/stable19

[stable19] Better error message when blocked by access control
This commit is contained in:
Roeland Jago Douma 2020-09-11 08:43:52 +02:00 committed by GitHub
commit cd29f22ee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1303,6 +1303,8 @@ OC.Uploader.prototype = _.extend({
self.cancelUploads(); self.cancelUploads();
} else if (status === 409) { } else if (status === 409) {
OC.Notification.show(message || t('files', 'Target folder does not exist any more'), {type: 'error'}); 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 { } else {
OC.Notification.show(message || t('files', 'Error when assembling chunks, status code {status}', {status: status}), {type: 'error'}); OC.Notification.show(message || t('files', 'Error when assembling chunks, status code {status}', {status: status}), {type: 'error'});
} }