For file uploads greater than 10 MB, obtain a presigned URL to upload a file
/post
endpoint with your externally accessible URL in the mediaURLs
body parameter and your file will automatically be uploaded.mp4
, mov
, png
, jpg
, or jpeg
.For example, if the file is a Quicktime .mov file, then the contentType should be mov
.If not present, application/octet-stream will be used.accessUrl
is the URL to access the media file after upload.contentType
is the content-type set for the media being upload. Use this in the Content-Type
header when uploading the media.uploadUrl
is the URL used to PUT the media file. Please see below.uploadURL
and accessURL
via the /media/uploadUrl
endpoint. Please see above.contentType
.--upload-file
with a media file and the uploadUrl
.200
response will be returned./post
endpoint with the accessUrl
in the
mediaUrls
body parameter.contentType
set when creating the uploadUrl
matches the Content-Type and the file type when PUTing the file.
For example, if you set the contentType
to “image/png” when creating the uploadUrl
, be sure to set the Content-Type: image/png
and the uploaded file ends in .png
.
On a successful upload, a 200
response will be returned.
uploadUrl
.
In Postman:
PUT
.uploadUrl
in the url field. Note, the url will expire after an hour and may only be used once. If you make a call and it fails, you must regenerate the uploadUrl
.Content-Type
to be the content type returned in the /uploadUrl endpoint. For example: Content-Type: image/png
.accessUrl
returned from the /uploadUrl endpoint in a browser. You may also use the verify URL endpoint.