E2B icon

E2B

Run commands and manage E2B sandboxes and snapshots

File → Upload

AI-generated

Summary

Upload binary data from a specified binary field in the workflow input to a file at a given path inside an E2B sandbox.

Inputs

  • Sandbox ID (required) — ID of the E2B sandbox where the file will be uploaded.
  • Remote Path (required) — Destination file path inside the sandbox to upload the file to (e.g., /home/user/file.txt).
  • Binary Field (required) — Name of the binary input field from which the file data will be read for upload.
  • Timeout — Timeout in seconds for the upload operation (defaults to 300 seconds).

Output shape

a single item containing JSON and binary data

Returns JSON with sandbox ID, remote path, uploaded file name, MIME type, size, and detailed file information. Includes the uploaded file as binary data in the specified binary property. The binary data is taken from the named binary field in the node input.

Examples

Example 1: Upload a local file to an E2B sandbox

Provide sandbox ID, set the remote file path inside the sandbox, and specify the binary field containing the file data. Execute this node to write the binary content as a file in the sandbox.

Links

Discussion