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
Happy glitching
2 Likes
i’ll try this out! thanks
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
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.