Signed URL for downloading an upload
Returns a short-lived (30s) signed S3 URL for the upload, or a local file URL when S3 isn't configured (dev). The caller must be able to read the parent record the upload is attached to.
path Parameters
uploadUpload ID.
Signed URL for downloading an upload › Responses
Signed URL string
List uploads attached to a record
Returns id, filename, and MIME type for every upload attached to the target record. The caller must be able to read the record.
path Parameters
modelModel identity.
recordTarget record ID.
List uploads attached to a record › Responses
Uploads
idfilenametypeAttach a file to a record
Uploads a file as multipart/form-data and links it to a target record. The model must be one whose model definition opts into uploads via uploadSettings.canUpload. The caller must be able to read (filter-pass) the target record. Per-record and per-account size/count limits from uploadSettings are enforced. Pass delete_others=true to remove any existing uploads on the same record after the new one lands.
path Parameters
modelModel identity (e.g. expense, user).
recordTarget record ID.
query Parameters
delete_othersWhen true, all other uploads on the same record are deleted after the new upload completes.
Attach a file to a record › Responses
Upload created
idfilenametypeMIME type. Only present when delete_others=true.
sizeSize in bytes. Only present when delete_others=true.