Merge pull request #32894 from nextcloud/backport/32878/stable24

[stable24] Fix default toast message for failed uploads with HTTP/2
This commit is contained in:
blizzz 2022-06-21 18:53:47 +02:00 committed by GitHub
commit e850afb74f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {