Finish an upload started by upload_media
confirm_uploadChecks the file uploaded to an upload_media target and makes it usable. Returns the media url to pass to other tools, the file's size, its kind (video or image), its measured width and height and, for a video, duration_seconds. WHEN: right after the bytes moved (the curl printed a 2xx, or the user says they finished on the browser_upload_url page). It checks that the CONTENTS match the declared type and that the media is MEASURABLE (every later transform is priced from the measurement). A file that fails is refused and never added, and nothing is charged: re-encode to MP4, PNG or JPEG. IF IT SAYS NOTHING HAS BEEN UPLOADED YET, the bytes did not land. Curl route: read the body it printed (S3's own reason; a bare 000 means your environment cannot reach the storage host, so switch to browser_upload_url). Browser route: the user has probably not finished. DO NOT CALL upload_media AGAIN: say you are waiting (no link) and call this again when they are done. After a reported success, wait a few seconds and call once more. Costs no tokens; safe to call again on the same id. AFTER THIS the url works as any input of its kind (video or image).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The `id` `upload_media` returned for this file. |