From e757e88600885e8f753e305ac304ccd7a30c0577 Mon Sep 17 00:00:00 2001 From: Brijesh Date: Mon, 21 Oct 2024 08:35:10 -0700 Subject: [PATCH] #1168 - not able to download attachment when there is special character in file name --- src/components/rangeUsePlanPage/attachments/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/rangeUsePlanPage/attachments/index.js b/src/components/rangeUsePlanPage/attachments/index.js index ce727e08..19d902fd 100644 --- a/src/components/rangeUsePlanPage/attachments/index.js +++ b/src/components/rangeUsePlanPage/attachments/index.js @@ -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: {