Assets in our projectname.glitch.me domain?

I don’t want my assets to look like cdn.glitch.com/randomletters/andnumbers/file.png. Is it possible to make the asset url into projectname.glitch.me/path/file.png?

If you have the cdn url, e.g. https://cnd.glitch.com/abc.png, you can use the wget command in the terminal to upload it to your project, and then refresh to show the new file in the editor.

wget "https://cdn.glitch.com/abc.png" -O path/to/file.png
refresh

You don’t necessarily need the quotes around the cdn url, but they sometimes have special characters in them, which makes the quotes necessary.
Also note that you can use any url instead of a glitch cdn url.
There’s also a method using curl, but I don’t know it :slight_smile:
Happy glitching :smiley:

2 Likes

i’ll try this out! thanks

hmmm, it didn’t work:

edit: tried it without the path and it worked!

1 Like

What you tried likley isn’t working because there isn’t a ~/src/f/ path. You could make one by:

cd
mkdir src
cd src
mkdir f
2 Likes