The idea Β· 1 of 4Two places your site's stuff lives
Think of your website as a recipe and a pantry.
π Your site folder
- Pages and their words
- Your events list
- Small pictures under 1 MB that belong to one page (an event's banner, an icon)
ποΈ The media library
- Event photos
- Videos and audio
- Big images, posters, PDFs
Why bother? Every copy of your site folder carries every file ever put in it, forever. A few event videos would make it slow for everyone who works on the site. So the site checks for this: if you try to publish a big file inside your site folder, it stops and says so. That's not something broken. It's telling you to put the file in the library instead.
The idea Β· 2 of 4Every file gets a web address
When something goes into the library, it gets its own address. That's what your page uses.
The address always starts with https://lunatechs.social/media/. If you ever see a photo address that looks different, especially one containing amazonaws.com, don't use it:
https://lunatechs.social/media/hk/images/halloween-crowd.jpgOur own address. Fast, private, works everywhere.
https://lunatechs-media.s3.amazonaws.com/hk/images/halloween-crowd.jpgThe same photo, but fetched from someone else's website. On iPhones, Safari can show visitors a privacy warning about your page because of it.
The idea Β· 3 of 4Why it's fast everywhere (the "CDN")
You'll hear the words CDN or CloudFront. Here's all it means.
A visitor in Hong Kong gets the photo from the Hong Kong copy, not from the other side of the world.
The CDN keeps copies of each file in cities around the world, and hands every visitor the closest one. That's why pictures load fast, and it all happens behind that one lunatechs.social/media/ address. You never have to set anything up.
The idea Β· 4 of 4Addresses are permanent
The one rule that surprises people.
poster-v2.jpgThose nearby copies are kept for up to a year, so if you swapped a file under the same name, visitors would keep seeing the old one. That's why you can't replace a file. You upload the new version under a new name (-v2, -v3β¦) and update the page. Your AI assistant does this for you if you say "this replaces the old poster".
Upload the exact same file twice? No harm done: you just get the existing address back.
Your upload keyWhat the "CLI token" is
In the app it's called a CLI token. Think of it as a key card.
How to do itTwo ways, pick one
Both put the file in the same place and give you the same address.
Way 1 Β· Easiestπ Upload in your browser
Open the Media tab
Go to app.lunatechs.social, sign in, and click Media at the top.
π First, search. Type a few words (like "skyline" or "halloween") to check it isn't there already.
Click β Upload and add your files
Set Upload to to Hong Kong, then drop your files in.
Describe each file
The description is required, and it matters: nobody can see the file from the list, so this is how the next person (or AI) knows what it is. One or two real sentences: what it shows, what it's for, and anything that limits where it can be used.
Then click Upload.
Copy the address and hand it over
Open the file and click Copy URL. Paste it to your AI assistant along with what you want:
"Use this photo as the hero image on the Halloween recap: https://lunatechs.social/media/hk/images/halloween-crowd.jpg"
Way 2 Β· Hands-freeπ€ Let your AI assistant do it
A one-time setup (yellow steps), then it's just asking.
Copy your key from the app once a month
At app.lunatechs.social, open Account and scroll to CLI access. Click Reveal CLI token, then Copy.
Give the key to the uploader once a month
Open the Terminal in your site folder (the same place you run your AI assistant) and run this line. When it asks, paste the key and press Enter. Nothing will show as you paste; that's normal.
If it says the file doesn't exist yet, just do step 3 first: the first upload downloads the uploader and then tells you to log in.
Now just ask
Drop the file somewhere easy (like Downloads) and tell your assistant what you want. Give it a sentence about the file so it can write a good description:
"Upload ~/Downloads/halloween-crowd.jpg to the media library for the Halloween Demo Day. It's a wide shot of the packed room in costume. Then use it as the hero on the recap page."
Your site folder already tells the assistant how: it runs ./media-upload.sh, gets back the lunatechs.social/media/β¦ address and puts it in the page.
If something goes wrongWhat the messages mean
Tap one to open it.
It says not logged in or token was refused
Your key is missing or has expired (they last 30 days). Do the two yellow steps again: copy a fresh key from Account β CLI access and run the login line. Your assistant will wait; it isn't allowed to work around this.
It says not staff of this chapter
Only Hong Kong's organizers and leaders can upload to Hong Kong. Ask your chapter lead to give you that role in the app, or ask an organizer to upload the file for you in the Media tab.
I don't see a Media tab, or no CLI access section
Those appear for chapter organizers and leaders. Just been made an organizer? Sign out of the app and back in: the tabs only update when you sign in again. Still missing? Check you're on the right account, then ask your chapter lead.
Publishing stopped and said a file is too big
A big photo or video ended up inside your site folder. Ask your assistant to move it to the media library and use the address instead. Files over 1 MB, and video, audio, ZIPs or PDFs over 300 KB, belong in the library.
I changed a photo but the site still shows the old one
Addresses are permanent (see idea 4). Upload the new version under a new name, like poster-v2.jpg, and point the page at that. Tell your assistant "this replaces the old poster" and it records the link between them.
The description was rejected
It needs at least one real sentence: 60+ characters, 10+ words. Say what's in the picture and what it's for.
It says Node is missing
The uploader needs a free program called Node.js (version 18 or newer). Ask your AI assistant to install it for you, or get it from nodejs.org.