How to link to assets

ok, this will probably make no sense whatsoever, but:

i am trying to hide like, .mp3 and .mp4 files in my site (think of like an arg), and i would like to know how using the file directory in the site, you could find them?

this is what i mean by the file directory btw:

1 Like

the following is by no means maximum security, but you can add an index.html file in that directory. that way, when someone goes to your-site.whatever/evidence/, it’ll show that page instead of the default listing of all the files in there

well what i meant is if i create like… test.mp4 for example, i could make it so it shows up in the actual website directory. dunno if thats possible tho..

there’s this technique

you upload the .mp4 as an asset, then you run a command in the project terminal to download the asset into the project container (in the tutorial it’s a .zip file that they then extract, which you’d stop before doing that for a media file)

other doing that, maybe it’s easier to hide an html page that plays the asset in an <audio> or <video>. that way it doesn’t use up project space storing these .mp3/.mp4 files

and if these are meant to be hidden, make sure to upload them with unguessable names if you use this approach, as assets by default don’t have a directory structure

1 Like


i tried to convert the original mp3 to a txt file because i think it would be funny and try to see if that would work

uh oh

it isn’t letting me upload a zip file?

don’t actually zip it, .zip files are secretly forbidden now. upload the .mp3 or .mp4 file as is

well i tried that but it doesn’t actually show up in the directory

wait im stupid

oh it could be about what directory you’re running wget from. do

mv whatever.mp3 evidence
refresh

in the future do

cd evidence
wget "https://whatever/..."
1 Like

this worked, thank you!

1 Like