Finalize media upload
finalize_media_uploadRecord an uploaded R2 object as a media file after the browser PUT (pairs with create_media_upload; used by the composer UI). Use this when a presigned direct upload finished and the file must be registered (advanced).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| r2Key | Yes | The r2Key returned by create_media_upload. | |
| width | No | Pixel width (images/video). | |
| height | No | Pixel height (images/video). | |
| duration | No | Duration in seconds (video). | |
| fileName | Yes | Original file name. | |
| mimeType | Yes | File MIME type. | |
| sizeBytes | Yes | File size in bytes. |