Skip to content

Commit

Permalink
Merge pull request #32878 from nextcloud/fix-default-toast-message-fo…
Browse files Browse the repository at this point in the history
…r-failed-uploads-with-http2

Fix default toast message for failed uploads with HTTP/2
  • Loading branch information
blizzz authored Jun 15, 2022
2 parents 596ead7 + e15b43d commit 3763024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ OC.Uploader.prototype = _.extend({
}
}
console.error(e, data, response)
OC.Notification.show(message || data.errorThrown, {type: 'error'});
OC.Notification.show(message || data.errorThrown || t('files', 'File could not be uploaded'), {type: 'error'});
}

if (upload) {
Expand Down

0 comments on commit 3763024

Please sign in to comment.