Merge pull request #22577 from nextcloud/bugfix/noid/better-error-when-chunk-assembling-is-denied

Better error message when blocked by access control
pull/22543/head
Joas Schilling 6 years ago committed by GitHub
commit 3c62767873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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'});
}

Loading…
Cancel
Save