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

# Uploads

> Upload files as email assets.

<Warning>
  Content API endpoints are currently in an open alpha and are subject to
  change.
</Warning>

The `uploads` command lets you upload files as email assets that can be referenced in [LMX](/creating-emails/lmx) email content.

## `create`

Upload a file as an email asset.

```bash theme={"dark"}
loops uploads create ./header.png
```

Use the returned `finalUrl` in [LMX `<Image />` elements](/creating-emails/lmx#images).

By default the MIME type is sniffed from the file contents. Override it with `--content-type` if needed:

```bash theme={"dark"}
loops uploads create ./header.png --content-type image/png
```

### Flags

| Flag             | Description                                                           |
| ---------------- | --------------------------------------------------------------------- |
| `--content-type` | MIME type to use for the upload (default: sniffed from file contents) |
