This method creates a multipart upload session for a local video file.
Supported content: Video
Upload limits: Local video files up to 4 GB.
Additional requirements depend on your workflow:
The total size of the file in bytes. The platform uses this value to:
When set to true, the platform generates an HLS playlist and segments for streaming. Applicable to video and audio assets only.
Default: false.
When set to true, the platform generates thumbnail images from the uploaded content.
Default: false.
Metadata that helps you categorize your assets. You can specify a list of keys and values. Keys must be of type string, and values can be of the following types: string, integer, float, or boolean.
The unique identifier of this upload session. Store this value, as you’ll need it for the following subsequent operations:
This identifier remains valid for 24 hours from the time of creation.
An array containing the initial set of presigned URLs for uploading chunks. Each URL corresponds to a specific chunk.
Note the following about the presigned URLs:
POST method of the /assets/multipart-uploads/{upload_id}/presigned-urls endpoint.The total number of chunks into which your file must be split. Calculated as: ceiling(total_size / chunk_size).
A string representing the date and time, in RFC 3339 format (“YYYY-MM-DDTHH:mm:ssZ”), when the upload URL will expire. Upload URLs expire 24 hours from their creation. After expiration, you cannot resume the upload, and you must create a new upload session.
Your API key.
You can find your API key on the API Keys page.