From 996becd1bb02857241148867bbe89c755a262e40 Mon Sep 17 00:00:00 2001 From: Nadia Kiamilev Date: Mon, 27 Mar 2023 19:53:33 +0200 Subject: [PATCH] update url path on artwork upload --- .../modules/create-dao/components/Artwork/ArtworkUpload.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/modules/create-dao/components/Artwork/ArtworkUpload.tsx b/apps/web/src/modules/create-dao/components/Artwork/ArtworkUpload.tsx index 2f3bac6ee..6125cbc40 100644 --- a/apps/web/src/modules/create-dao/components/Artwork/ArtworkUpload.tsx +++ b/apps/web/src/modules/create-dao/components/Artwork/ArtworkUpload.tsx @@ -124,7 +124,9 @@ export const ArtworkUpload: React.FC = ({ uri: upload?.ipfs?.uri || '', url: encodeURI( getFetchableUrl(upload?.ipfs?.uri) + - `/${upload.webkitRelativePath.split('/').slice(1).join('/')}` || '' + `/${sanitizeFileName( + upload.webkitRelativePath.split('/').slice(1).join('/') + )}` || '' ), path: upload.webkitRelativePath, content: upload?.content,