Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize file names of cover image #103

Closed
sol-survivor opened this issue Jul 1, 2021 · 4 comments
Closed

Sanitize file names of cover image #103

sol-survivor opened this issue Jul 1, 2021 · 4 comments

Comments

@sol-survivor
Copy link
Contributor

sol-survivor commented Jul 1, 2021

The cover image of files with spaces don't load properly during NFT creation.
This can be fixed by modifying line 495 the artCreate/index.tsx

      const file = files.find(f => f.name.replace(/ /g, '-') === attributes.image);

However, after upload the cover image is not found on Arweave (404 error).

@flappy-07
Copy link
Contributor

just remove all cleanName calls from the file artCreate/index.tsx. No need to use replace function.

@bhgames
Copy link
Contributor

bhgames commented Jul 23, 2021

@flappy-07 @sol-survivor this still happening for you ?

@sol-survivor
Copy link
Contributor Author

@flappy-07 @sol-survivor this still happening for you ?

I haven't tried loading an image with a space recently.

@jordaaash
Copy link
Contributor

Closing as stale. Please comment if this is still occurring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants