upload_file
Upload a file or image to a row by providing base64-encoded data. Attach the file to a specified column, appending by default or replacing existing files when replace is set to true.
Instructions
Upload a file or image to a row. Accepts base64-encoded file data and attaches it to the specified file or image column. By default appends to existing files; set replace=true to overwrite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Target table name | |
| column | Yes | Name of the file or image column | |
| row_id | Yes | Row ID to attach the file to | |
| file_name | Yes | File name with extension (e.g. "report.pdf") | |
| file_data | Yes | Base64-encoded file content | |
| replace | No | Replace existing files (default: append) |