Better error message when blocked by access control
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
dc60a81284
commit
94f4e5142f
|
@ -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'});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue