> ## 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

> Images and videos to attach to posts.

## media upload

```bash theme={"system"}
postinger media upload photo.jpg video.mp4 https://example.com/banner.png
```

Checks each file first (JPEG or PNG up to 8 MB, MP4 or MOV up to 1 GB), sends it straight to storage, in parts when it's large, and prints its media ID to pass to `--media`. For an `https://` link, Postinger fetches the file itself.

## media get

```bash theme={"system"}
postinger media get <id>
```


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