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.

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:

    --header 'Content-Type: image/png'
  • For a PDF document:

    --header 'Content-Type: application/pdf'
  • For an MP4 video file:

    --header 'Content-Type: video/mp4'
  • For a plain text file:

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

Last updated

Was this helpful?