← Chapter Guide
Guide Β· Photos & video

Photos, video & your upload key

Your site's photos and videos don't live with your pages any more. They live in one shared media library, and your site points to them. Here's what that means, and the two easy ways to do it.

πŸ–ΌοΈMedia goes in the libraryNot in your site's folder. Your site just links to it.
πŸ”—Use the address it gives youIt always starts lunatechs.social/media/
πŸ”‘A key lets your AI do itCopy it from the app once; it lasts 30 days.

The idea Β· 1 of 4Two places your site's stuff lives

Think of your website as a recipe and a pantry.

πŸ“˜ Your site folder

the "repo" Β· the recipe
  • 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

shared by every chapter Β· the pantry
  • Event photos
  • Videos and audio
  • Big images, posters, PDFs
πŸ“˜Your pagesays "put the photo here"
β†’
πŸ—„οΈMedia libraryhands over the photo
β†’
πŸ“±Visitorsees one finished page

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.

Bonus: because the library is shared, you can reuse art from other chapters. Search it before you make or upload something new; the poster you need might already exist.

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.

https://lunatechs.social/media/hk/images/halloween-crowd.jpg
our own website "from the media library" Hong Kong Β· photos the file's name

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.jpg
Our own address. Fast, private, works everywhere.
βœ•
https://lunatechs-media.s3.amazonaws.com/hk/images/halloween-crowd.jpg
The 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.

πŸ—„οΈ The media librarythe one original of each file
πŸ“Hong Konga nearby copy
πŸ“Singaporea nearby copy
πŸ“San Franciscoa nearby copy
πŸ“Londona nearby copy

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.jpgalready on your site
β†’
✏️Want to change it?upload poster-v2.jpg
β†’
πŸ“˜Point the pageat the new address

Those 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.

πŸ”‘
It lets your AI assistant upload to the library as you.You copy it from the Lunatechs app and give it to your assistant once. After that, you just ask: "put this photo on the homepage", and it uploads it, gets the address and uses it.
πŸ§‘Youcopy the key from the app
β†’
πŸ€–Your AI assistantuploads with it
β†’
πŸ—„οΈMedia librarygives back the address
⏳ Lasts 30 daysor until you sign out of the app. Then grab a fresh one, same steps.
🀫 Treat it like a passwordAnyone who has it can upload as you. Don't paste it in chats or email.
πŸ‘€ Who can get oneYour chapter's organizers and leaders. Not one yet? Ask your chapter lead.

How to do itTwo ways, pick one

Both put the file in the same place and give you the same address.

Easiest🌐 Upload in your browserNo key, no setup. Drag the file in, copy the address, give it to your AI assistant. Hands-freeπŸ€– Let your AI assistant do itSet up the key once, then just say "use this photo". Best when you have lots of files.

Way 1 · Easiest🌐 Upload in your browser

1

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.

2

Click ↑ Upload and add your files

Set Upload to to Hong Kong, then drop your files in.

3

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.

4

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:

Tell your assistant

"Use this photo as the hero image on the Halloween recap: https://lunatechs.social/media/hk/images/halloween-crowd.jpg"

βœ“
That's it. The photo is in the library, and your page points to it.

Way 2 Β· Hands-freeπŸ€– Let your AI assistant do it

A one-time setup (yellow steps), then it's just asking.

1

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.

2

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.

node ~/.lunatechs/lunatechs.mjs login

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.

Paste the key into the Terminal, not into the chat. The login line above keeps it on your computer. Typing it into a chat window spreads your key around.
3

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:

Tell your assistant

"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.

βœ“
From now on it's one sentence per photo. Come back to the yellow steps when the key runs out after 30 days.

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.

The media library is for what your site shows, not a backup of every photo you take. Keep the full set from each event in your own Google Drive, Dropbox or iCloud, and upload the best ones.