Upload files
A drive stores files of any type. Each file can be up to 10,000,000,000 bytes (10 decimal GB), as long as it fits your workspace's available storage.
Upload from the Console
Open a drive, open the destination folder, and select Upload files, or drag files or a whole folder onto the page. A dragged folder keeps its folder tree. Keep the page open until the files finish transferring; after that you can leave and come back.
Upload from the CLI, Python or an agent
flashdrive upload ./report.pdf --wait
flashdrive upload ./notes --recursive --wait
--recursive uploads a local folder with its folder tree. --dry-run shows what would be sent. If an upload is interrupted, resume it with the run ID the CLI printed: flashdrive upload resume RUN_ID --wait. See CLI uploads and recovery.
from flashdrive import Flashdrive
with Flashdrive(drive_id="DRIVE_ID") as client:
batch = client.upload(["report.pdf", "data.parquet"])
for f in batch.files:
print(f.status)
By default the SDK waits until each file is ready. Pass wait=False to return as soon as the transfer finishes. See upload files.
prepare_upload, upload_transfer and complete_upload, and follow progress with get_upload. On a mounted drive, an agent can simply write files into the folder. See manage content.To work on a drive's files in place instead of uploading copies, mount the drive.
What happens to each file
| Files | What happens |
|---|---|
PDF, Word (.docx), plain text (.txt), Markdown (.md) | Stored, and their text is read so you can read them by line and grep them. TXT and Markdown use UTF-8. |
| Anything else: code, photos, video, audio, archives, data sets, model weights | Stored as they are, with format file. Their name, size and type are recorded, and for media files some header facts such as dimensions or duration. Their text is not read. |
Every file can be listed, found by path, downloaded, streamed through a file link and read by byte range, whatever its type.
A file appears in its drive (in the Console, the API, MCP, the CLI and a mounted drive) as soon as its transfer finishes, and its bytes can be read at once. For PDF, Word, text and Markdown files, the file's text_status shows whether its text is ready:
text_status | Meaning |
|---|---|
processing | The file is stored and listed, and its text is being read. When you replace a file, reads return the previous text until the new text is ready. |
text | The text is ready to read and grep. |
none | The file has no text to read. text_status_reason says why. |
text_status_reason | Meaning |
|---|---|
not_text_format | The file is not a PDF, Word, text or Markdown file. |
no_text_layer | The file has no text layer, such as a scanned PDF. Run OCR and upload the result if you need its text. |
extraction_failed | The file is stored, but its text could not be read. |
too_large_to_index | The file is stored and can be downloaded and read by byte range, but only a bounded prefix is searchable. The original remains available. |
Renaming or moving a file does not read it again.
Upload capacity
Each drive has a limit on uploads in progress at one time. Beyond it, a new upload answers upload_limit; wait for earlier files to finish, then continue. Other drives have their own allowance.
For a large collection of UTF-8 text and Markdown files, a bulk import sends files in large chunks, saves progress locally and continues after an interruption. One import takes at most 100,000 files; split a larger collection into several imports. See bulk imports.
Resolve common failures
| Error | What to do |
|---|---|
file_too_large | The file is over 10,000,000,000 bytes. Split it, or store it in parts. |
storage_capacity_exceeded | The upload would go past your available storage. Free up space or add storage; see storage. |
drive_limit_exceeded | The drive is at its file or storage limit. Use another drive or remove files. |
upload_limit | The drive is at its transfer or queue limit. Wait, then retry. |
invalid_filename | Remove path separators and control characters from the file name. |
invalid_file | Open the file in its original application, save a fresh copy, and upload that. |
pdf_password_required | Save an unlocked copy you are allowed to use, and upload that. |
no_extractable_text | The file has no readable text. For a scan, run OCR and upload the result. |
If a transfer is interrupted, keep the original file and the upload or run ID, then follow the recovery steps.