create_upload_ticket
Get a presigned upload URL for a LOCAL image file — the one case a URL can't cover. PUT the file to uploadUrl with the same Content-Type, then pass the returned r2Path to a generation tool instead of imageUrl. Ticket expires in 1 hour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original filename, used for the extension | |
| sizeBytes | No | Exact byte size of the file. Recommended: when given it is signed into the URL, so the upload is bounded server-side. | |
| contentType | Yes | MIME type the PUT request will send |