Skip to content

Commit

Permalink
fix: Client sends incorrect file name when uploading assets (#32636)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 authored Jun 19, 2024
1 parent 6c17292 commit f5e0d1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hungry-waves-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixed file name being incorrectly sent from the client when uploading assets
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f5e0d1e

Please sign in to comment.