[{"data":1,"prerenderedAt":703},["ShallowReactive",2],{"navigation_docs":3,"-platform-uploads-and-indexing":223,"-platform-uploads-and-indexing-surround":698},[4,30,83,128,157,182],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","\u002Fgetting-started","1.getting-started",[9,13,17,21,25],{"title":10,"path":11,"stem":12},"What is FlashDrive?","\u002Fgetting-started\u002Fwhat-is-flashdrive","1.getting-started\u002F01.what-is-flashdrive",{"title":14,"path":15,"stem":16},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F02.quickstart",{"title":18,"path":19,"stem":20},"Key concepts","\u002Fgetting-started\u002Fkey-concepts","1.getting-started\u002F03.key-concepts",{"title":22,"path":23,"stem":24},"Find files","\u002Fgetting-started\u002Ffind-files","1.getting-started\u002F04.find-files",{"title":26,"path":27,"stem":28},"Common use cases","\u002Fgetting-started\u002Fuse-cases","1.getting-started\u002F05.use-cases",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Platform Guide","\u002Fplatform","2.platform",[35,39,43,47,51,55,59,63,67,71,75,79],{"title":36,"path":37,"stem":38},"Organizations and workspaces","\u002Fplatform\u002Forganizations-and-workspaces","2.platform\u002F01.organizations-and-workspaces",{"title":40,"path":41,"stem":42},"Members, invitations, and roles","\u002Fplatform\u002Fmembers-and-roles","2.platform\u002F02.members-and-roles",{"title":44,"path":45,"stem":46},"API keys and permissions","\u002Fplatform\u002Fapi-keys","2.platform\u002F03.api-keys",{"title":48,"path":49,"stem":50},"Drives and the default drive","\u002Fplatform\u002Fdrives-and-defaults","2.platform\u002F04.drives-and-defaults",{"title":52,"path":53,"stem":54},"Folders and files","\u002Fplatform\u002Ffolders-and-documents","2.platform\u002F05.folders-and-documents",{"title":56,"path":57,"stem":58},"Upload files","\u002Fplatform\u002Fuploads-and-indexing","2.platform\u002F06.uploads-and-processing",{"title":60,"path":61,"stem":62},"Usage","\u002Fplatform\u002Fusage","2.platform\u002F07.usage",{"title":64,"path":65,"stem":66},"Billing and credits","\u002Fplatform\u002Fbilling","2.platform\u002F08.billing",{"title":68,"path":69,"stem":70},"Storage and limits","\u002Fplatform\u002Fstorage-and-upgrades","2.platform\u002F09.storage-and-upgrades",{"title":72,"path":73,"stem":74},"Account settings and security","\u002Fplatform\u002Faccount-and-security","2.platform\u002F10.account-and-security",{"title":76,"path":77,"stem":78},"Redeem a promo code","\u002Fplatform\u002Fpromo-codes","2.platform\u002F11.promo-codes",{"title":80,"path":81,"stem":82},"Build tools from files","\u002Fplatform\u002Ffile-workflows","2.platform\u002F12.file-workflows",{"title":84,"path":85,"stem":86,"children":87,"page":29},"SDK Guide","\u002Fsdk","4.sdk",[88,92,96,100,104,108,112,116,120,124],{"title":89,"path":90,"stem":91},"Python installation and configuration","\u002Fsdk\u002Finstallation","4.sdk\u002F01.installation",{"title":93,"path":94,"stem":95},"Upload your first files","\u002Fsdk\u002Fupload-files","4.sdk\u002F02.upload-files",{"title":97,"path":98,"stem":99},"Upload a large collection","\u002Fsdk\u002Fbulk-imports","4.sdk\u002F03.bulk-imports",{"title":101,"path":102,"stem":103},"Find, read and edit files","\u002Fsdk\u002Ffiles","4.sdk\u002F05.files",{"title":105,"path":106,"stem":107},"Work with folders","\u002Fsdk\u002Ffolders","4.sdk\u002F06.folders",{"title":109,"path":110,"stem":111},"Manage drives and defaults","\u002Fsdk\u002Fdrives-and-defaults","4.sdk\u002F07.drives-and-defaults",{"title":113,"path":114,"stem":115},"Replace files and attach metadata","\u002Fsdk\u002Freplace-and-label","4.sdk\u002F08.replace-and-label",{"title":117,"path":118,"stem":119},"Upload recovery and partial failures","\u002Fsdk\u002Fupload-recovery","4.sdk\u002F09.upload-recovery",{"title":121,"path":122,"stem":123},"Async workflows","\u002Fsdk\u002Fasync","4.sdk\u002F10.async",{"title":125,"path":126,"stem":127},"Errors, timeouts, and retries","\u002Fsdk\u002Ferrors-and-retries","4.sdk\u002F11.errors-and-retries",{"title":129,"path":130,"stem":131,"children":132,"page":29},"CLI Guide","\u002Fcli","5.cli",[133,137,141,145,149,153],{"title":134,"path":135,"stem":136},"Get Started","\u002Fcli\u002Fquickstart","5.cli\u002F01.quickstart",{"title":138,"path":139,"stem":140},"Profiles and Access","\u002Fcli\u002Fconfiguration","5.cli\u002F02.configuration",{"title":142,"path":143,"stem":144},"Uploads and Recovery","\u002Fcli\u002Fuploads-and-recovery","5.cli\u002F03.uploads-and-recovery",{"title":146,"path":147,"stem":148},"Mount and Sync","\u002Fcli\u002Fmount-and-sync","5.cli\u002F05.mount-and-sync",{"title":150,"path":151,"stem":152},"Sandbox Tokens","\u002Fcli\u002Fsandboxes","5.cli\u002F06.sandboxes",{"title":154,"path":155,"stem":156},"Command Reference","\u002Fcli\u002Fcommands","5.cli\u002F07.commands",{"title":158,"path":159,"stem":160,"children":161,"page":29},"MCP","\u002Fmcp","6.mcp",[162,166,170,174,178],{"title":163,"path":164,"stem":165},"Connect an AI client","\u002Fmcp\u002Fconnect","6.mcp\u002F01.connect",{"title":167,"path":168,"stem":169},"Choose an assistant’s permissions","\u002Fmcp\u002Fpermissions","6.mcp\u002F02.permissions",{"title":171,"path":172,"stem":173},"Upload and manage content","\u002Fmcp\u002Fmanage-content","6.mcp\u002F04.manage-content",{"title":175,"path":176,"stem":177},"Tool reference","\u002Fmcp\u002Ftools","6.mcp\u002F05.tools",{"title":179,"path":180,"stem":181},"Troubleshooting and revoking access","\u002Fmcp\u002Ftroubleshooting","6.mcp\u002F06.troubleshooting",{"title":183,"path":184,"stem":185,"children":186,"page":29},"Reference","\u002Freference","7.reference",[187,191,195,199,203,207,211,215,219],{"title":188,"path":189,"stem":190},"Authentication and API conventions","\u002Freference\u002Fauthentication","7.reference\u002F01.authentication",{"title":192,"path":193,"stem":194},"Organizations, workspaces, and access API","\u002Freference\u002Faccess-api","7.reference\u002F02.access-api",{"title":196,"path":197,"stem":198},"Drives, folders, and files API","\u002Freference\u002Fcontent-api","7.reference\u002F03.content-api",{"title":200,"path":201,"stem":202},"Uploads API","\u002Freference\u002Fuploads-api","7.reference\u002F04.uploads-api",{"title":204,"path":205,"stem":206},"Usage and billing API","\u002Freference\u002Fusage-and-billing-api","7.reference\u002F06.usage-and-billing-api",{"title":208,"path":209,"stem":210},"Errors and recovery","\u002Freference\u002Ferrors","7.reference\u002F07.errors",{"title":212,"path":213,"stem":214},"Limits and supported files","\u002Freference\u002Flimits","7.reference\u002F08.limits",{"title":216,"path":217,"stem":218},"Troubleshooting","\u002Freference\u002Ftroubleshooting","7.reference\u002F09.troubleshooting",{"title":220,"path":221,"stem":222},"Changelog","\u002Freference\u002Fchangelog","7.reference\u002F10.changelog",{"id":224,"title":56,"body":225,"description":691,"extension":692,"links":693,"meta":694,"navigation":695,"path":57,"seo":696,"stem":58,"__hash__":697},"docs\u002F2.platform\u002F06.uploads-and-processing.md",{"type":226,"value":227,"toc":684},"minimark",[228,232,237,244,248,375,381,385,441,444,451,500,554,557,561,568,574,578,674,680],[229,230,231],"p",{},"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.",[233,234,236],"h2",{"id":235},"upload-from-the-console","Upload from the Console",[229,238,239,240,243],{},"Open a drive, open the destination folder, and select ",[241,242,56],"strong",{},", 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.",[233,245,247],{"id":246},"upload-from-the-cli-python-or-an-agent","Upload from the CLI, Python or an agent",[249,250,251,298,353],"tabs",{},[252,253,255,279],"tabs-item",{"label":254},"CLI",[256,257,262],"pre",{"className":258,"code":259,"language":260,"meta":261,"style":261},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","flashdrive upload .\u002Freport.pdf --wait\nflashdrive upload .\u002Fnotes --recursive --wait\n","sh","",[263,264,265,273],"code",{"__ignoreMap":261},[266,267,270],"span",{"class":268,"line":269},"line",1,[266,271,272],{},"flashdrive upload .\u002Freport.pdf --wait\n",[266,274,276],{"class":268,"line":275},2,[266,277,278],{},"flashdrive upload .\u002Fnotes --recursive --wait\n",[229,280,281,284,285,288,289,292,293,297],{},[263,282,283],{},"--recursive"," uploads a local folder with its folder tree. ",[263,286,287],{},"--dry-run"," shows what would be sent. If an upload is interrupted, resume it with the run ID the CLI printed: ",[263,290,291],{},"flashdrive upload resume RUN_ID --wait",". See ",[294,295,296],"a",{"href":143},"CLI uploads and recovery",".",[252,299,301,343],{"label":300},"Python",[256,302,306],{"className":303,"code":304,"language":305,"meta":261,"style":261},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from flashdrive import Flashdrive\n\nwith Flashdrive(drive_id=\"DRIVE_ID\") as client:\n    batch = client.upload([\"report.pdf\", \"data.parquet\"])\n    for f in batch.files:\n        print(f.status)\n","python",[263,307,308,313,319,325,331,337],{"__ignoreMap":261},[266,309,310],{"class":268,"line":269},[266,311,312],{},"from flashdrive import Flashdrive\n",[266,314,315],{"class":268,"line":275},[266,316,318],{"emptyLinePlaceholder":317},true,"\n",[266,320,322],{"class":268,"line":321},3,[266,323,324],{},"with Flashdrive(drive_id=\"DRIVE_ID\") as client:\n",[266,326,328],{"class":268,"line":327},4,[266,329,330],{},"    batch = client.upload([\"report.pdf\", \"data.parquet\"])\n",[266,332,334],{"class":268,"line":333},5,[266,335,336],{},"    for f in batch.files:\n",[266,338,340],{"class":268,"line":339},6,[266,341,342],{},"        print(f.status)\n",[229,344,345,346,349,350,297],{},"By default the SDK waits until each file is ready. Pass ",[263,347,348],{},"wait=False"," to return as soon as the transfer finishes. See ",[294,351,352],{"href":94},"upload files",[252,354,355,356,359,360,363,364,367,368,371,372,297],{"label":158},"Agents upload with ",[263,357,358],{},"prepare_upload",", ",[263,361,362],{},"upload_transfer"," and ",[263,365,366],{},"complete_upload",", and follow progress with ",[263,369,370],{},"get_upload",". On a mounted drive, an agent can simply write files into the folder. See ",[294,373,374],{"href":172},"manage content",[229,376,377,378,297],{},"To work on a drive's files in place instead of uploading copies, ",[294,379,380],{"href":147},"mount the drive",[233,382,384],{"id":383},"what-happens-to-each-file","What happens to each file",[386,387,388,401],"table",{},[389,390,391],"thead",{},[392,393,394,398],"tr",{},[395,396,397],"th",{},"Files",[395,399,400],{},"What happens",[402,403,404,429],"tbody",{},[392,405,406,422],{},[407,408,409,410,413,414,417,418,421],"td",{},"PDF, Word (",[263,411,412],{},".docx","), plain text (",[263,415,416],{},".txt","), Markdown (",[263,419,420],{},".md",")",[407,423,424,425,428],{},"Stored, and their text is read so you can ",[294,426,427],{"href":23},"read them by line and grep them",". TXT and Markdown use UTF-8.",[392,430,431,434],{},[407,432,433],{},"Anything else: code, photos, video, audio, archives, data sets, model weights",[407,435,436,437,440],{},"Stored as they are, with format ",[263,438,439],{},"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.",[229,442,443],{},"Every file can be listed, found by path, downloaded, streamed through a file link and read by byte range, whatever its type.",[229,445,446,447,450],{},"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 ",[263,448,449],{},"text_status"," shows whether its text is ready:",[386,452,453,464],{},[389,454,455],{},[392,456,457,461],{},[395,458,459],{},[263,460,449],{},[395,462,463],{},"Meaning",[402,465,466,476,486],{},[392,467,468,473],{},[407,469,470],{},[263,471,472],{},"processing",[407,474,475],{},"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.",[392,477,478,483],{},[407,479,480],{},[263,481,482],{},"text",[407,484,485],{},"The text is ready to read and grep.",[392,487,488,493],{},[407,489,490],{},[263,491,492],{},"none",[407,494,495,496,499],{},"The file has no text to read. ",[263,497,498],{},"text_status_reason"," says why.",[386,501,502,512],{},[389,503,504],{},[392,505,506,510],{},[395,507,508],{},[263,509,498],{},[395,511,463],{},[402,513,514,524,534,544],{},[392,515,516,521],{},[407,517,518],{},[263,519,520],{},"not_text_format",[407,522,523],{},"The file is not a PDF, Word, text or Markdown file.",[392,525,526,531],{},[407,527,528],{},[263,529,530],{},"no_text_layer",[407,532,533],{},"The file has no text layer, such as a scanned PDF. Run OCR and upload the result if you need its text.",[392,535,536,541],{},[407,537,538],{},[263,539,540],{},"extraction_failed",[407,542,543],{},"The file is stored, but its text could not be read.",[392,545,546,551],{},[407,547,548],{},[263,549,550],{},"too_large_to_index",[407,552,553],{},"The file is stored and can be downloaded and read by byte range, but only a bounded prefix is searchable. The original remains available.",[229,555,556],{},"Renaming or moving a file does not read it again.",[233,558,560],{"id":559},"upload-capacity","Upload capacity",[229,562,563,564,567],{},"Each drive has a limit on uploads in progress at one time. Beyond it, a new upload answers ",[263,565,566],{},"upload_limit","; wait for earlier files to finish, then continue. Other drives have their own allowance.",[229,569,570,571,297],{},"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 ",[294,572,573],{"href":98},"bulk imports",[233,575,577],{"id":576},"resolve-common-failures","Resolve common failures",[386,579,580,590],{},[389,581,582],{},[392,583,584,587],{},[395,585,586],{},"Error",[395,588,589],{},"What to do",[402,591,592,602,615,625,634,644,654,664],{},[392,593,594,599],{},[407,595,596],{},[263,597,598],{},"file_too_large",[407,600,601],{},"The file is over 10,000,000,000 bytes. Split it, or store it in parts.",[392,603,604,609],{},[407,605,606],{},[263,607,608],{},"storage_capacity_exceeded",[407,610,611,612,297],{},"The upload would go past your available storage. Free up space or add storage; see ",[294,613,614],{"href":69},"storage",[392,616,617,622],{},[407,618,619],{},[263,620,621],{},"drive_limit_exceeded",[407,623,624],{},"The drive is at its file or storage limit. Use another drive or remove files.",[392,626,627,631],{},[407,628,629],{},[263,630,566],{},[407,632,633],{},"The drive is at its transfer or queue limit. Wait, then retry.",[392,635,636,641],{},[407,637,638],{},[263,639,640],{},"invalid_filename",[407,642,643],{},"Remove path separators and control characters from the file name.",[392,645,646,651],{},[407,647,648],{},[263,649,650],{},"invalid_file",[407,652,653],{},"Open the file in its original application, save a fresh copy, and upload that.",[392,655,656,661],{},[407,657,658],{},[263,659,660],{},"pdf_password_required",[407,662,663],{},"Save an unlocked copy you are allowed to use, and upload that.",[392,665,666,671],{},[407,667,668],{},[263,669,670],{},"no_extractable_text",[407,672,673],{},"The file has no readable text. For a scan, run OCR and upload the result.",[229,675,676,677,297],{},"If a transfer is interrupted, keep the original file and the upload or run ID, then follow the ",[294,678,679],{"href":118},"recovery steps",[681,682,683],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":261,"searchDepth":275,"depth":275,"links":685},[686,687,688,689,690],{"id":235,"depth":275,"text":236},{"id":246,"depth":275,"text":247},{"id":383,"depth":275,"text":384},{"id":559,"depth":275,"text":560},{"id":576,"depth":275,"text":577},"Store any file in a drive, and know what happens to it after the upload.","md",null,{},{"title":56},{"title":56,"description":691},"fCRHVX569DeBomS5sx2cYqJP_yNf_Rxu5OfMLVj25DA",[699,701],{"title":52,"path":53,"stem":54,"description":700,"children":-1},"Organize a drive in folders like a laptop drive, and change files safely.",{"title":60,"path":61,"stem":62,"description":702,"children":-1},"What FlashDrive measures, and where to follow it.",1795366546182]