pb_files_get_url
Retrieve the URL of a file attached to a specific record in a collection. Specify the collection, record ID, and filename; optionally include thumbnail dimensions for resized images.
Instructions
Get the URL for a file attached to a record
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name or ID | |
filename | Yes | File name | |
recordId | Yes | Record ID that owns the file | |
thumb | No | Thumbnail size (e.g., "100x100", "0x100") |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name or ID",
"type": "string"
},
"filename": {
"description": "File name",
"type": "string"
},
"recordId": {
"description": "Record ID that owns the file",
"type": "string"
},
"thumb": {
"description": "Thumbnail size (e.g., \"100x100\", \"0x100\")",
"type": "string"
}
},
"required": [
"collection",
"recordId",
"filename"
],
"type": "object"
}