Attach and return files from inside your custom action.
FileData
object:
Shortcut for text files For small UTF‑8 files you may skip Base64 entirely:
Field | Required | Notes |
---|---|---|
fileName | ✓ | Include extension |
mimeType | ✓ | Accurate type controls preview icons & parsing |
size | ✓ | File size in bytes |
text / base64 | ✓* | Provide one of them, never both |
url | ✓ | Opens the file in the source app |
lastModified | ✓ | ISO‑8601 or Date |
data | – | Raw API response for debugging |
Limit | Value |
---|---|
Total file size per action run | 100 MB |
Individual documents (single file) | ≤ 256 MB* |
Individual images | ≤ 20 MB |
Individual spreadsheets | ≤ 30 MB |
Individual audio files | ≤ 200 MB* |
Processing Timeout | Action execution timeout of 2 minutes applies to file processing |
Exceeding a limit throws a validation error before your code runs.
ld.log("Processing 3/10 files")
) to help debugging.Symptom/Error | Likely Cause & Fix |
---|---|
“File not found” | User forgot to attach a file Make file input field required |
Size‑limit error | File(s) > 100 MB → request smaller batch |
File upload/download fails | Ensure content is properly base64 encoded Check logs for file processing errors |