> For the complete documentation index, see [llms.txt](https://developer.cloudfactory.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.cloudfactory.com/getting-started/upload-media.md).

# Uploading Media Assets

When uploading media to the oversight platform through signed urls, it is crucial to ensure that the `Content-Type` header is included in your request. This header specifies the media type of the resource being uploaded, which helps the oversight platform understand how to process the file.

## Sample Request

Below is a sample `curl` request to upload a media file. Make sure to include the `Content-Type` header in your request with the correct type.

```sh
curl --location --request PUT '{signed_url}' \
--header 'Content-Type: image/jpeg' \
--data-binary '@{file-location}'
```

## Other Content Types

Here are some examples of other `Content-Type` headers you might use depending on the type of file you are uploading:

* For a PNG image:

  ```sh
  --header 'Content-Type: image/png'
  ```
* For a PDF document:

  ```sh
  --header 'Content-Type: application/pdf'
  ```
* For an MP4 video file:

  ```sh
  --header 'Content-Type: video/mp4'
  ```
* For a plain text file:

  ```sh
  --header 'Content-Type: text/plain'
  ```

Always ensure that the `Content-Type` header is included and correctly set to the media type of the file you are uploading.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.cloudfactory.com/getting-started/upload-media.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
