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 26, 2023
1 parent 423a4f9 commit 6369bb9
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 @@ -1296,8 +1296,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 6369bb9

Please sign in to comment.