Image Import as a file

#1

I’m thinking of adding an image to my project, but I don’t know how to do it to be in a path like assets/image.png
Does anyone have an idea of how to do this without using github?

From a Discord Bot Developer and Glitch User,
TehPig_YT

1 Like

#2

Hey @TehPig_YT, the assets drawer isn’t a real filesystem component - it’s kind of a vrirtual directory that represents a storage location in Glitch’s larger remote storage. You can’t reference things in assets directly by file path.

Depending on what you ant to do you can either look in the assets drawer and copy the image url to use directly, or use something like wget <copied url> to copy the file to your local filesystem somewhere and then use it from there.

Hope this helps!

2 Likes

#3

Nevermid, I solved my problem. I wasn’t sure if the requester that I use could accept links. Also, thank you for your help! It is really appreciated.

From a Discord Bot Developer and Glitch User,
TehPig_YT

2 Likes