Skip to content

Commit

Permalink
Merge pull request #22592 from nextcloud/backport/22577/stable18
Browse files Browse the repository at this point in the history
[stable18] Better error message when blocked by access control
  • Loading branch information
rullzer authored Sep 11, 2020
2 parents a3f4b6b + 525dfc7 commit fdeeeb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'});
}
Expand Down

0 comments on commit fdeeeb7

Please sign in to comment.