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

The `uploads` command lets you upload files as email assets that can be referenced in [LMX](/docs/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](/docs/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) |


## Related topics

- [API Introduction](/docs/api-reference/intro.md)
- [Complete an upload](/docs/api-reference/complete-upload.md)
- [Create an upload](/docs/api-reference/create-upload.md)
- [CSV Upload](/docs/add-users/csv-upload.md)
- [Uploading a custom email](/docs/creating-emails/uploading-custom-email.md)
