Skip to content

Commit

Permalink
#1168 - not able to download attachment when there is special charact…
Browse files Browse the repository at this point in the history
…er in file name
  • Loading branch information
Brijesh committed Oct 21, 2024
1 parent 79951ee commit e757e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/rangeUsePlanPage/attachments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Attachments = ({ planId, attachments = [], label = '', propertyName }) =>
const handleUpload = async (file, _attachment, index) => {
const fieldName = `files.${index}`;
try {
const signedUrl = await getSignedUploadUrl(file.name);
const signedUrl = await getSignedUploadUrl(encodeURIComponent(file.name));

await axios.put(signedUrl, file, {
headers: {
Expand Down

0 comments on commit e757e88

Please sign in to comment.