Skip to content

Commit

Permalink
Merge pull request #176 from ourzora/fix/url-upload
Browse files Browse the repository at this point in the history
update url path on artwork upload
  • Loading branch information
nadiakiamilev authored Mar 27, 2023
2 parents 2c51e39 + 996becd commit aa94ec9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ export const ArtworkUpload: React.FC<ArtworkFormProps> = ({
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,
Expand Down

2 comments on commit aa94ec9

@vercel
Copy link

@vercel vercel bot commented on aa94ec9 Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on aa94ec9 Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

testnet-nouns-builder – ./apps/web

testnet.nouns.build
testnet-nouns-builder-ourzora.vercel.app
testnet-nouns-builder-git-main-ourzora.vercel.app

Please sign in to comment.