pagehive

get_file

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>").

TablesRead-onlyAll plansUpdated

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

NameTypeAbout
filerequiredstringThe file column's value.
site_idstringOnly 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