What it does
Upload an image or short video from your own disk into a file column of a site table, without its bytes passing through a tool call. Returns a single-use upload_url for curl -sS -X PUT --data-binary @<file> "<upload_url>"; no API key and no Content-Type are needed (the type is read from the bytes: png, jpg, gif, webp, avif, mp4, webm). The link works once and expires after 10 minutes. Optional sha256 (64 hex) makes it accept only that exact file. The curl answer's file is the address; write it into the column with create_row or update_row within 24 hours. The file shows on the site at once, to whoever may read its row; no publish. Needs a shell that can reach pagehive.io.
Plans
Works on every plan: Free, Basic, Pro and Ultra.
Parameters
| Name | Type | About |
|---|---|---|
namerequired | string | The table. |
columnrequired | string | The file column's key. |
sha256 | string | Optional checksum (64 hex characters, as sha256sum prints it). The link then accepts only that exact file. |
site_id | string | Only for a site shared with you (whoami lists them): read or change that site's data as its member. |
idempotency_key | string | Any unique string (1-200 printable ASCII). A retry with the same key and arguments returns the first call's result instead of running again. Same as the Idempotency-Key header. |
Example
Call create_file_upload_url with these arguments:
{
"name": "articles",
"column": "image"
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- Photos and videos in tablesAdd photos and short videos to rows, from a form or through your agent.