Skip to content

Commit

Permalink
chore: Client sends incorrect file name when uploading assets
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 committed Jun 19, 2024
1 parent 70e3968 commit 1a45eaf
Showing 1 changed file with 1 addition and 1 deletion.
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 1a45eaf

Please sign in to comment.