From 89eae8babee4eb5e3e66a6bf18c909555e941ed6 Mon Sep 17 00:00:00 2001 From: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com> Date: Mon, 16 Oct 2023 11:24:58 +0530 Subject: [PATCH] Updated error message for invalid attachments (#24872) --- webapp/channels/src/components/file_upload/file_upload.tsx | 2 +- webapp/channels/src/i18n/en.json | 2 +- webapp/channels/src/i18n/en_AU.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/channels/src/components/file_upload/file_upload.tsx b/webapp/channels/src/components/file_upload/file_upload.tsx index 61e07afcb0..9253d2e71a 100644 --- a/webapp/channels/src/components/file_upload/file_upload.tsx +++ b/webapp/channels/src/components/file_upload/file_upload.tsx @@ -360,7 +360,7 @@ export class FileUpload extends PureComponent { } if (files.length === 0) { - this.props.onUploadError(localizeMessage('file_upload.drag_folder', 'Folders cannot be uploaded. Please drag all files separately.')); + this.props.onUploadError(localizeMessage('file_upload.drag_folder', 'This attachment cannot be uploaded.')); return; } diff --git a/webapp/channels/src/i18n/en.json b/webapp/channels/src/i18n/en.json index 3f2a736a10..1c5a5dbe4d 100644 --- a/webapp/channels/src/i18n/en.json +++ b/webapp/channels/src/i18n/en.json @@ -3486,7 +3486,7 @@ "file_search_result_item.more_actions": "More Actions", "file_search_result_item.open_in_channel": "Open in channel", "file_upload.disabled": "File attachments are disabled.", - "file_upload.drag_folder": "Folders cannot be uploaded. Please drag all files separately.", + "file_upload.drag_folder": "This attachment cannot be uploaded.", "file_upload.fileAbove": "File above {max}MB could not be uploaded: {filename}", "file_upload.filesAbove": "Files above {max}MB could not be uploaded: {filenames}", "file_upload.generic_error": "There was a problem uploading your files.", diff --git a/webapp/channels/src/i18n/en_AU.json b/webapp/channels/src/i18n/en_AU.json index 869fd92a89..ff538fcc14 100644 --- a/webapp/channels/src/i18n/en_AU.json +++ b/webapp/channels/src/i18n/en_AU.json @@ -3490,7 +3490,7 @@ "file_search_result_item.more_actions": "More Actions", "file_search_result_item.open_in_channel": "Open in channel", "file_upload.disabled": "File attachments are disabled.", - "file_upload.drag_folder": "Folders cannot be uploaded. Please drag all files separately.", + "file_upload.drag_folder": "This attachment cannot be uploaded.", "file_upload.fileAbove": "File above {max}MB cannot be uploaded: {filename}", "file_upload.filesAbove": "Files above {max}MB cannot be uploaded: {filenames}", "file_upload.generic_error": "There was a problem uploading your files.",