Gallery File Rules and Limits
Most upload incidents come from format and size mismatches.
On this page
Step 1 — Check limits before upload
| Media type | Direct limit | Special rule |
|---|---|---|
| Photo | 10MB | Use compressed files for faster processing |
| Video | 50MB | Larger files go through Telegram session |
| Audio | 20MB | Only .ogg or .mp3 accepted |
Step 2 — Handle common upload errors
- “No file selected” means picker state is empty.
- “Audio uploads must be .ogg or .mp3 files…” means wrong format.
- “Audio files must be under 20MB.” means size overflow.
- “Telegram uploads are limited to 10 files per batch.” means split batch.
Step 3 — Retry with cleaned batch
- Remove invalid files from selection.
- Split oversized batch into smaller groups.
- Run upload again and confirm success count.
Common mistakes
- Uploading unsupported audio extensions.
- Submitting more than 10 oversized files in one Telegram batch.
- Assuming silent failures will self-recover.
- Keeping failed assets in script steps.
Done
You can now run this page with a stable daily routine and fewer surprises.