confirm_upload
Confirm a completed file upload and create the database record.
Call this after successfully uploading a file to the presigned URL from get_upload_url. This verifies the file exists in storage and creates a file block on the page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional title for the file block | |
| s3_key | Yes | The s3_key returned by get_upload_url | |
| file_id | Yes | The file_id returned by get_upload_url | |
| page_id | Yes | The UUID of the page to attach the file to | |
| filename | Yes | The original filename | |
| mime_type | Yes | The MIME type of the file |