In short.
This is a short E2B documentation page for developers who need to copy files into and out of an E2B Sandbox from JavaScript/TypeScript or Python, and its main catch is that it shows no easy way to move whole directories. The page gives side-by-side examples that create a sandbox with Sandbox.create(), upload with sbx.files.write(path, data) and download with sbx.files.read(path). Its own multiple-file examples use one call per file, and it says directory upload and download have no simple supported method yet. It also says a custom sandbox template is an alternative way to get data into a sandbox. The page does not state prices, API-key setup, size limits, error handling or a licence. Nothing on it was run or tested.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is the complete documentation page at [https://docs.e2b.dev/quickstart/upload-download-files.md], captured as one file and read in full, including all JavaScript/TypeScript and Python code blocks. Linked pages were not read: the custom sandbox template quickstart, the Upload data to sandbox page and the documentation index. The page has no licence or pricing notice. Nothing was executed, so SDK behaviour, buffering and streaming, authentication, limits, binary file handling and compatibility with current versions are not assessed.
The overview
What this resource is
This is a single documentation page titled Upload & downloads files, published at [https://docs.e2b.dev/quickstart/upload-download-files.md] in E2B's quickstart section. It documents how to move files between your local machine and an E2B Sandbox.
The page gives code in two languages: JavaScript/TypeScript, which imports { Sandbox } from 'e2b', and Python, which does from e2b import Sandbox. The page does not name an author, a version or a publication date.
Overall assessment
For its narrow purpose the page is clear and easy to follow. Single-file and multiple-file upload and download operations each have JavaScript/TypeScript and Python examples. The directory tasks have explanatory text but no examples. The paths are explicit: local paths are relative to the current working directory and sandbox paths are absolute, such as /home/user/my-file.
It is a quickstart, not a full reference. It does not cover errors, size limits, text versus binary handling in depth, authentication or sandbox cleanup. Treat it as a starting point and check the full E2B SDK documentation before relying on it in production. This assessment comes from reading the text only; none of the code was executed.
Who it is for
The page suits developers who already use, or are about to use, E2B Sandboxes from the JavaScript/TypeScript or Python SDK and need to get input files in and results out. Beginners with basic file I/O in either language can follow the examples.
It does not explain what E2B is or why you would use a sandbox, so someone completely new to the product would need other pages for that background. The page shows only these two languages, so developers using other languages are not covered.
What it shows you how to do
Upload a single file: in JS/TS, read the local file with fs.readFileSync and pass the content to sbx.files.write(sandboxPath, content); in Python, open the local file in binary mode with open(..., 'rb') and pass the open file object to sbx.files.write(sandboxPath, file).
Upload several files: the page states you can pass a list of { path, data } entries to files.write() in JavaScript, or use files.write_files() in Python, and it links to a separate Upload data to sandbox page for that. Its own example takes the other approach, one files.write() call per file.
Download a single file: call sbx.files.read(sandboxPath), then write the returned content to a local file (fs.writeFileSync in JS/TS, a file opened with 'w' in Python).
Download several files: read each one separately and write each locally. The page says no batch method is offered here and that a better solution is being worked on.
Directories: the page says there is currently no easy way to upload or download a whole directory. For upload it suggests reading each file locally and passing them in one call, and for download it says to fetch each file separately.
Using it
What you need
From the examples you need the E2B SDK for your language (the e2b module in both) and a runtime that can run it: Node.js with the fs module for JS/TS, or Python. You also need local files to upload, or a local path to write downloads to.
The page does not show how to install the SDK, which versions are supported, or how to authenticate. Sandbox.create() is called with no arguments, and any API key or environment configuration it needs is not mentioned on this page, so it is unknown from this evidence. You also need network access to E2B's service, which is implied but not stated.
How it works
Each example creates a sandbox object with Sandbox.create() and uses its files interface. Upload is files.write(absolutePathInSandbox, data). In the JavaScript/TypeScript example, the data is file content read locally with fs.readFileSync before the call. In the Python example, the data is an open binary file object created with open(..., 'rb'). Download is files.read(absolutePathInSandbox), which returns content that your own code then writes to a local file.
The page does not describe how the SDK buffers or streams data, so SDK buffering and streaming behaviour are unknown from this page. The underlying transport, size limits and how content is represented for binary downloads are also not described and are unknown from this evidence.
Setup
The page has no separate setup section. Based on its snippets, you would install the e2b package for your language, make sure your E2B access is configured as the wider E2B documentation describes, then paste the relevant snippet and change the local and sandbox paths.
Installation commands, credential setup and sandbox configuration are not on this page and were not assessed. Linked pages, including the custom sandbox template quickstart, were not read.
Example
The page's Python upload example does the following: import Sandbox from e2b, create sbx = Sandbox.create(), open local/file in binary mode ('rb'), and call sbx.files.write('/home/user/my-file', file) to place it at that absolute path in the sandbox.
Its Python download example reverses this: create a sandbox, call content = sbx.files.read('/home/user/my-file'), then open local/file with mode 'w' and write the content to it. The JS/TS versions use await with the same method names plus fs.readFileSync and fs.writeFileSync.
One detail to check before copying: the Python upload opens the file in binary mode while the download opens the local file in text mode ('w'). The page does not say whether files.read returns text or bytes, or how to handle binary downloads, so check the SDK reference for non-text files. These examples were read, not run.
Assessment & evidence
Limitations
The page itself states these limits: there is no easy way to upload or download a whole directory, and downloading several files means fetching each one separately. It says E2B is working on better solutions, but gives no dates.
Gaps in what the page covers: no error handling, no file size or rate limits, no permission or ownership notes for sandbox files, no guidance on binary versus text downloads, no sandbox cleanup, no authentication steps and no languages beyond JS/TS and Python. The multi-file batch upload methods are only mentioned and delegated to another page that was not read.
None of the code was executed, so whether the snippets work with the current SDK version is not assessed.
Why this assessment
The page is official E2B documentation, with the E2B docs domain in its address, and its content is code-first and specific. That supports treating it as a reliable description of the intended usage, though only for the narrow topic it covers.
The page is a how-to guide that teaches one feature of a sandbox SDK, so it fits Learning resources rather than being a tool in itself. Confidence in the described behaviour is moderate: it rests on the documentation text alone, without running the code or reading the SDK source.
Alternatives and related options
The page names one alternative way to get data into a sandbox: create a custom sandbox template, documented at [https://docs.e2b.dev/template/quickstart.md]. This page does not say what a template contains, how it is built or whether data in it is reused across sandboxes, so those details are unknown from this evidence. The template page was not read.
The page also points to Upload data to sandbox at [https://docs.e2b.dev/filesystem/upload.md] for uploading several files in one call. That page was outside the reviewed scope. Other sandbox products have their own file-transfer methods, but none are covered by this evidence and no comparison is made.
Evidence base
The analysis rests on one captured file: the full text of the documentation page at [https://docs.e2b.dev/quickstart/upload-download-files.md], about 5.4 KB. It covers the complete page, including all code examples, the directory-limitation notes and the links to other E2B pages.
No other pages, SDK source code, release notes, pricing pages or licence files were captured. No code was run, so every statement about behaviour comes from what the documentation says.
Access & freshness
Costs
The page states no prices, quotas, free tier or usage limits. The cost of creating and running E2B Sandboxes, and any charge for file operations or storage, is unknown from this evidence.
The examples create a sandbox but never show it being closed or shut down. The page does not discuss sandbox lifetime or billing, so whether leaving a sandbox open costs anything is unknown here. Check E2B's pricing and sandbox lifecycle documentation before using this in anything long-running.
Rights and licence
The captured page does not include a licence, copyright notice or terms of use for the documentation text or the code snippets. Whether you may copy, adapt or redistribute them is therefore unknown from this evidence, and the licence of the E2B SDK is also not shown.
No separate licence file was captured, so no redistributable copy of this resource is offered. Read the page online and check E2B's own terms and the SDK repository's licence before reusing material.
Freshness
The text analysed was captured on 13 November 2026. The page shows no publication date, last-updated date or SDK version, so how current the examples are against the latest E2B SDK is unknown.
The statements that a better solution for directories and multi-file downloads is being worked on may be out of date. Check the live page and the SDK reference for current behaviour.
Suggested next steps
If you use E2B, start from the snippet for your language, replace the example paths, and try it with a small text file in a throwaway sandbox before moving real data.
Before relying on it, confirm in the E2B SDK reference how authentication works, what type files.read returns for binary files, whether there are size limits, and how and when to shut a sandbox down. If you need many files, read the linked Upload data to sandbox page for the batch write option. The page also names a custom sandbox template as another way to get data into a sandbox. It does not explain what a template contains or whether its data is reused, so read the linked template quickstart before choosing that route.
