Glitch Asset Upload

Hello, when I upload an image to Glitch, it turns into a box instead of adding it as a file, how od I fix this?

You can use wget to get the files in the project directly and not use the Glitch CDN
In the terminal use:

wget glitchcdnurl

And then use the command:

refresh

In the terminal to show it in the editor

You can also use the -o flag to change the output name:

wget cdn.glitch.com/asset.png -o assetnew.png

@EddiesTech @RiversideRocks I put, wget https://cdn.glitch.com/9e255755-2b2b-4b01-a55d-abeae1e9ea7f%2Flogo.png?v=1597015129486

2 Likes

Yep in the terminal
Via tools -> terminal

1 Like

Then put refresh in the terminal to refresh the editor

Output was this I tried to paste but Glitch said no more than 2 links. I also refreshed and nothing happened.

Can you run ls in the console? Does that file appear?

9e255755-2b2b-4b01-a55d-abeae1e9ea7f%2Flogo.png?v=1597015129486 assetnew.png node_modules shrinkwrap.yaml
9e255755-2b2b-4b01-a55d-abeae1e9ea7f%2Flogo.png?v=1597015129486.1 assets package.json src
9e255755-2b2b-4b01-a55d-abeae1e9ea7f%2Flogo.png?v=1597015129486.2 blfd! package-lock.json
9e255755-2b2b-4b01-a55d-abeae1e9ea7f%2Flogo.png?v=1597015129486.3 LICENSE.md README.md
9e255755-2b2b-4b01-a55d-abeae1e9ea7f%2Fthumbnails%2Flogo.png?1597015129486 logo.png screenshots

@EddiesTech

Output was this I tried to paste but Glitch said no more than 2 links. I also refreshed and nothing happened.

@RiversideRocks That’s what it said when I said ls

Can you try it again but use the -o flag?

They don’t need to, they just need to refresh the editor using the refresh command or do ls. This works all the time for me with no o name tag.

It worked, I refreshed the page, as I thought you meant that, thanks!

1 Like

Issue is, if you don’t, you get a file with ?v=923482394 at the end and chrome or what browser you use may not detect is as an image file.

1 Like

I just rename via the editor :slight_smile: works just as well and has a UI, either way will work, I was just saying they didn’t need to use the o name tag to resolve the issue

2 Likes