> ## 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](https://loops.so/docs/creating-emails/lmx.md) 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](https://loops.so/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

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