download_file
Retrieve the URL to download a file stored in a specific field of a PocketBase collection record by specifying the collection, record ID, and file field name.
Instructions
Get the URL to download a file from a PocketBase collection record field.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | The name or ID of the collection. | |
fileField | Yes | The name of the file field. | |
recordId | Yes | The ID of the record containing the file. |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "The name or ID of the collection.",
"type": "string"
},
"fileField": {
"description": "The name of the file field.",
"type": "string"
},
"recordId": {
"description": "The ID of the record containing the file.",
"type": "string"
}
},
"required": [
"collection",
"recordId",
"fileField"
],
"type": "object"
}