Upload File (Fallback)
upload_fileUpload a file via base64 encoding to Inistate, scoped to a module. Use as a fallback when presigned URL upload fails. Returns file path for activity submission.
Instructions
FALLBACK ONLY — use request_upload_url + confirm_upload first; call this only after that presigned flow has actually failed. Uploads via base64. Returns { path, filename, mimeType, size } — use path as the File/Image field value in submit_activity. Max 50MB. Blocked: .exe, .bat, .cmd, .dll, .msi.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Base64-encoded file content | |
| name | Yes | Original filename (e.g. 'report.pdf') | |
| module | Yes | Module name. Required — scopes the file to the module's storage folder. | |
| mimeType | No | MIME type of the file | application/octet-stream |
| workspaceId | No | Workspace ID. Omit if set via env or set_workspace; required in stateless/remote mode. |