Skip to content

Commit

Permalink
fix: better error handling on file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Jul 27, 2023
1 parent 53543f1 commit 6ebf40b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1291,8 +1291,9 @@ OC.Uploader.prototype = _.extend({
var message = '';
if (upload) {
var response = upload.getResponse();
message = response.message;
message = t('files', 'Failed to upload the file "{fileName}": {error}', {fileName: upload.getFileName(), error: response.message});
}

OC.Notification.show(message || data.errorThrown, {type: 'error'});
}

Expand Down

0 comments on commit 6ebf40b

Please sign in to comment.