Declare an upload
request_uploadStep one of putting a file in: declare it and get upload URLs back (videos also get one for their cover frame). PUT the bytes, then call confirm_upload. Leave out trip_id when you do not know where it belongs yet — it waits in a pool. See learn('recipes/upload').
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | image or video; photo is a legacy alias for image. | |
| trip_id | No | Optional. Without it the file waits in the unclaimed pool. | |
| size_bytes | Yes | Size of the original file in bytes. | |
| content_hash | Yes | SHA-256 of the original bytes, lowercase hex. Used to skip re-uploading. (must not be empty) |