What it does
Get one file from a file column by its address (the column's value, /_pagehive/uploads/<id>.<ext>): its table, column, row, type, size, who uploaded it and when, and a download_url that works for 10 minutes (curl -o <file> "<download_url>"). Images up to 1 MB (png, jpg, gif, webp) also come back as an image in the answer, so you can look at them. You get only files of rows you may read.
Plans
Works on every plan: Free, Basic, Pro and Ultra.
Parameters
| Name | Type | About |
|---|---|---|
filerequired | string | The file column's value. |
site_id | string | Only for a site shared with you (whoami lists them): read or change that site's data as its member. |
Example
Call get_file with these arguments:
{
"file": "/_pagehive/uploads/01a2….jpg"
}
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.