> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postinger.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Media

> Photos and videos you attach to posts.

Media is uploaded once to the workspace's library and attached to posts by ID, with `mediaIds`. A post takes up to 10 files.

## What you can upload

| Kind | Formats | Largest |
| - | - | - |
| Image | JPEG, PNG | 8 MB |
| Video | MP4, MOV | 1 GB |

Each platform then has its own rules: Instagram only takes JPEG, TikTok and YouTube take one video. See [platform rules](https://docs.postinger.dev/concepts/platform-rules.md).

## Two ways in

* **Upload the file**: start an upload, send the bytes straight to storage (in parts when large), then complete it. Your API key never goes to storage. See [Upload media](https://docs.postinger.dev/guides/upload-media.md).
* **From a link**: give Postinger a public `https://` URL and it fetches the file itself. This is how MCP adds media.

A file can only be attached once it's `ready`. A file used by a post that hasn't been published yet can't be deleted.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.