Upload Media
upload_media · Nodes · Data
Stores media bytes for workflow use.
Upload Media#
Stores media as a Verdalia object.
Input#
input: binary data,{ binary },{ base64, mime_type, filename? },{ url },http/httpsURL, an object descriptor, or{ object_id }.
Binary previews are redacted metadata, not valid binary input:
{"bytes":"<binary>","mime_type":"image/png","filename":"image.png","size_bytes":12345}
bytes: "<binary>" is not byte content, not base64, and cannot be replayed. Do not paste preview JSON into configs or test inputs.
Feed runtime binary forward instead:
- Connect the
read_mediaoutputsocket toupload_media.input. - For a binary HTTP response, pass
HTTP Request.output.bodytoupload_media.input. If the whole HTTP output object is wired instead, use a small JavaScript node to returninputs.input.body. - Interpolate the runtime field into
{ "binary": "{{read_media.output.binary}}" }when an object wrapper is needed.
If you only have base64 JSON, pass { "base64": "...", "mime_type": "image/png", "filename": "image.png" }.
Config#
kind_hint: optionalimage,pdf,file,audio, orvideo.filename: optional interpolated filename.retention_hours: optional positive integer. Default24. Set tonull/ disabled for no expiry.access:private(default) orpublic.
A public object gets a public_url that needs no login, so it can be pasted anywhere — a Discord message, an API request body. A private object has no such URL; it is read through a short-lived signed link minted at the moment of use.
Visibility is fixed when the bytes are written and cannot be changed afterwards. To change it, upload again.
Retention applies to public objects too: the public URL stops resolving when the object expires. For a link that must keep working, disable retention.
When the input is already an object descriptor, Upload Media returns that existing object and changes neither its retention nor its access.
Output#
output: an object descriptor with:object_id: string— the object's id, and the only identifier you need.kind: image | video | audio | pdf | file.content_type: string— MIME type.filename: string | null— original or configured filename when known.size_bytes: number— byte length.public_url: string | null— a URL needing no login, present only whenaccessispublic.expires_at: string— when the object is deleted (RFC 3339); present only when retention is set.metadata: object— kind-specific, tagged bytype:{ "type": "image", "width": number, "height": number }{ "type": "video", "width": number | null, "height": number | null, "duration_ms": number | null }{ "type": "audio", "duration_ms": number | null, "artist": string | null }{ "type": "pdf", "page_count": number | null }{ "type": "file" }
Limits#
- URL downloads are bounded to 50 MB.
- URL downloads reach public addresses only. A
localhostURL is refused, and a URL that resolves to a private, loopback, link-local, or otherwise non-public address fails withURL resolves to a non-public address. Redirects are followed up to 10 hops, and every hop is checked the same way. - Stored media follows media object size limits.
Inputs
inputRequired
Outputs
output
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
kind_hint | enum(image, pdf, file, audio, video) | No | Optional media kind when content type is generic |
filename | string | No | Optional output filename |
retention_hours | nullable<integer> | No | Hours before the uploaded media object expires; disable for no expiry |
access | enum(private, public) | No | Public objects get a shareable URL that needs no login; retention still applies, so the URL stops resolving when the object expires |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |