ActionAnthropicUpdated September 2026

How do I upload a file (PDF, image, text) to Anthropic?

Short answer: You can upload file in Anthropic by hand from its own interface, but it won’t repeat itself. On TinyCommand, add the Anthropic Upload File action to a workflow, map its 2 inputs from any upstream app, and it runs automatically every time the trigger fires. No code, and a free tier to start.

Upload File in Anthropic — start free
Inputs

The fields this action accepts.

Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.

FieldTypeRequiredDescription
File URL
file_url
stringRequiredPublic HTTPS URL the executor will fetch and upload as the file body. Anthropic's Files API requires a real binary upload — pass a URL that returns the raw file bytes (PDF, image, text, etc.). Signed S3 / CDN URLs work; one redirect is followed.
Filename (optional)
filename
stringOptionalOverride the filename Anthropic stores. If empty, the executor derives it from the URL's path.
Sample request
{
"file_url": "e.g. https://example.com/files/report.pdf",
"filename": "e.g. report.pdf"
}
Returns
{
"id": "file_abc",
"filename": "report.pdf",
"mime_type": "application/pdf",
"created_at": "2026-05-10T10:00:00Z",
"size_bytes": 12345
}

Use these fields in downstream nodes for routing, logging, or error handling.

Triggered by

Apps that pair well as the trigger for Upload File.

Any of these apps can fire this action as part of a workflow.

FAQ

Questions about Upload File.

What does the Upload File action do in Anthropic?
Uploads a file (PDF, image, text) to Anthropic for use in messages via document blocks. Returns a file_id you reference instead of re-sending the bytes on every call.
What inputs does Upload File require?
Required: File URL. Every input accepts a static value or a variable from any upstream node in your workflow.
Can I use dynamic inputs from earlier workflow nodes?
Yes. Any field on this action can pull values from upstream nodes, whether that's a form response, a trigger payload, an AI output, or a lookup result.
What happens if Anthropic returns an error?
The run history shows the failed step with its input and the error message Anthropic returned, so you can fix the input and run the workflow again. Automatic retries are built into HTTP steps only, where you can also set your own retry count and delay.
Does Upload File support batch operations?
Run Upload File inside a loop to process each item in an array. TinyCommand does not throttle calls for you, so for large arrays add a Delay step if you need to stay within Anthropic's rate limits.
More actions

Other Anthropic actions.

Upload File in Anthropic — start free