If an upload URL has already been generated for your thumbnail, you can use it instead for uploading the thumbnail.
Please note that the token in the upload URL is valid for four hours. This means that if the upload takes longer than four hours to complete, an error will occur. If this happens, perform the "Get thumbnail upload URL" request again to generate a new upload URL.
Request
curl -X POST -F "file=@/<FILENAME>" "https://file-1-b.video-cdn.net/FQMx5EcAGqS-789vU7s6QY/78463.UPLOAD_Bzg_-8GaCUeRDYhaLd3eCf.jpeg/still?mime-type=image%2Fjpeg&__token__=abc123"
URL | Description |
---|---|
UPLOAD_URL | An example upload URL is shown above. This is returned from the API's Get Thumbnail Upload URL endpoint. |
Parameters | |
token | The token is returned along with the upload URL and is valid for 4 hours (see warning above). |
mime-type | The upload URL also contains the mime type of the image. |
Form Data | |
file=@/<FILENAME> | Indicate the filename (and path if necessary) of the local thumbnail image file to upload. Ensure that you add "@/" in front of the filename. |
Response
204 - OK
1101 - Upload denied because the booked storage capacity limit is reached.