diff --git a/packages/file-handling/src/i18n/de/translation.json b/packages/file-handling/src/i18n/de/translation.json index 9014babc8ce6fdedd8d7f166e18cc0f936f55ad9..0c087610934ac74e86802af9cf54a4badc17c76e 100644 --- a/packages/file-handling/src/i18n/de/translation.json +++ b/packages/file-handling/src/i18n/de/translation.json @@ -135,7 +135,8 @@ "size": "Größe", "something-went-wrong": "Etwas ist schief gelaufen. Bitte verbinden Sie sich erneut.", "upload-to": "Es wird nach {{- path}} hochgeladen ...", - "webdav-error": "Etwas ist schief gelaufen: {{error}}" + "webdav-error": "Etwas ist schief gelaufen: {{error}}", + "file-error": "Die Datei \"{{file}}\" ist fehlerhaft und konnte nicht hochgeladen werden." }, "upload-label": "Dateiauswahl" } diff --git a/packages/file-handling/src/i18n/en/translation.json b/packages/file-handling/src/i18n/en/translation.json index 23f8ce6c4a29e241701b6d8320fda6e95370b02c..071724f2e074b0020762daa30e5af0f6221c97ba 100644 --- a/packages/file-handling/src/i18n/en/translation.json +++ b/packages/file-handling/src/i18n/en/translation.json @@ -135,7 +135,8 @@ "size": "Size", "something-went-wrong": "Something went wrong. Please reload.", "upload-to": "Uploading to {{- path}} ...", - "webdav-error": "Something went wrong" + "webdav-error": "Something went wrong", + "file-error": "The file \"{{file}}\" is corrupt and could not be uploaded." }, "upload-label": "Select some files" } diff --git a/packages/file-handling/src/nextcloud-file-picker.js b/packages/file-handling/src/nextcloud-file-picker.js index 4ed8e65e82e45fa20515e3c91605cf2b66885341..4093eadcb2ff4e5e4d46e7fdf2f4591ab32b3a08 100644 --- a/packages/file-handling/src/nextcloud-file-picker.js +++ b/packages/file-handling/src/nextcloud-file-picker.js @@ -1637,6 +1637,8 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { } }) .catch((error) => { + this.statusText = i18n.t('nextcloud-file-picker.file-error', {file: file.name}); + this.loading = false; throw error; }); } else {