# Endlss batch upload (ZIP)

Upload up to **500 images and videos at once** by putting them in a ZIP file
and choosing **ZIP batch** on the Endlss upload page (web only). The ZIP is
opened **in your browser**; the files are then sent in groups of 25.

## Limits

- Images: `.jpg .jpeg .png .webp .gif .heic .heif`, up to 10 MB each
- Videos: `.mp4 .webm .mov .avi .mkv`, up to the site's video limit (250 MB by default)
- Up to 500 media files and 4 GB in total per ZIP
- Hidden files, `__MACOSX` folders and other file types are skipped (you'll see a list)

## Optional: `endlss.json`

Put an `endlss.json` file in the ZIP to set titles, descriptions, tags,
privacy, prompts and a collection. Start from the example
([endlss.json](endlss.json)); the full format is in
[endlss.schema.json](endlss.schema.json).

- `defaults` apply to every file: `tags`, `isPrivate`, `collection`
  (`{ "name": "...", "isPublic": true }` creates one new collection for the
  whole ZIP), and `description`. They pre-fill the upload form, where you can
  still change them.
- `items` override the defaults for one file each. `file` is the path inside
  the ZIP. An item's `tags` are **added** to the default tags.
- Files you don't list still upload, titled after their file name
  (`sunset_over-the-bay.jpg` → "sunset over the bay").
- Titles and descriptions you write here are kept as you wrote them;
  Endlss' automatic tagging won't overwrite them.
- Mistakes don't stop the upload: a bad field is ignored and shown next to its
  file in the preview.

## Optional: the packer script

[`endlss_pack.py`](endlss_pack.py) builds the ZIP and `endlss.json` for you
from a folder. It runs entirely on your computer and never connects to the
internet; it uses only Python's standard library (Python 3.8+), and it's
short and commented so you can read exactly what it does.

```
python endlss_pack.py MyFolder --collection "My trip" --public-collection --tags travel
python endlss_pack.py MyFolder --dry-run      # preview only
python endlss_pack.py --self-test             # check the script works
```

Next to `photo.jpg` you can put `photo.txt` (description) and `photo.tags`
(tags, separated by commas or new lines); the script copies them into
`endlss.json`.
