Start chunked media upload
create_multipart_uploadStart a chunked (multipart) direct-to-storage upload for large media — videos up to 1GB, images up to 100MB. Returns r2Key, uploadId, the fixed partSize (10485760 bytes = 10MB), and one presigned PUT URL per part (valid 3600s). PUT each 10MB slice to its URL, collect each response's ETag header, then call complete_multipart_upload. For ordinary files prefer upload_media. Use this when a file is too large for a single upload (e.g. a video over 100MB, up to 1GB) and must be sent in 10MB chunks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sizeBytes | Yes | Exact file size in bytes. Videos up to 1GB; images up to 100MB. | |
| contentType | Yes | File MIME type, e.g. video/mp4 or image/png. |