From 1a45eafba726c048e0db3a0c6e1f86a77750d7d4 Mon Sep 17 00:00:00 2001 From: matheusbsilva137 Date: Wed, 19 Jun 2024 16:37:37 -0300 Subject: [PATCH 1/2] chore: Client sends incorrect file name when uploading assets --- .../client/views/admin/settings/inputs/AssetSettingInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/client/views/admin/settings/inputs/AssetSettingInput.tsx b/apps/meteor/client/views/admin/settings/inputs/AssetSettingInput.tsx index 9ebde75e7316..14ba6f27b4c5 100644 --- a/apps/meteor/client/views/admin/settings/inputs/AssetSettingInput.tsx +++ b/apps/meteor/client/views/admin/settings/inputs/AssetSettingInput.tsx @@ -35,7 +35,7 @@ function AssetSettingInput({ _id, label, value, asset, required, disabled, fileC dispatchToastMessage({ type: 'info', message: t('Uploading_file') }); const fileData = new FormData(); - fileData.append('asset', blob, asset); + fileData.append('asset', blob, blob.name); fileData.append('assetName', asset); try { From 4af2c197ee93e33eb163ea68b0605dc775b58154 Mon Sep 17 00:00:00 2001 From: Matheus Barbosa Silva <36537004+matheusbsilva137@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:26:52 -0300 Subject: [PATCH 2/2] Create hungry-waves-lick.md --- .changeset/hungry-waves-lick.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hungry-waves-lick.md diff --git a/.changeset/hungry-waves-lick.md b/.changeset/hungry-waves-lick.md new file mode 100644 index 000000000000..294ece663c32 --- /dev/null +++ b/.changeset/hungry-waves-lick.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/meteor": patch +--- + +Fixed file name being incorrectly sent from the client when uploading assets