How to add a PNG file w/o it adding to the assets folder

This is the most annoying feature to ever exist. The project I remixed off of stores it’s images in a resources folder instead of assets. Now, when i try to add a new file, it goes to Assets. No way to change it. Can’t add a text file and paste a PNG there because it doesn’t show as a PNG instead it shows as the jumble of text it displays as. What do I do??? I can’t use the wget because it needs a URL to add it, but the image isn’t stored at an URL, and I doubt importing the file path URL will work.

The project you remixed was probably a github repo, and Github stores images in files as expected.

Glitch reimports all your non-code assets into the Glitch Assets page, where you can copy the URL for them and use them as normal.

If you need to put an asset from a URL into your assets, try downloading it first, then importing it.

if it’s small enough to be copy+pasting it around, you can try base64 pasting it through the project terminal

on your computer:

base64 myimage.png
# copy the printout

(or maybe there’s a web tool that can do this too)

in the project terminal

base64 >myfile.png
# paste the printout
# press enter
# press ctrl+d
1 Like