Blog

How a 10 GB upload survives a closed tab

A single-request upload is all or nothing: one drop in your wifi at 90% and it starts over. Nemi splits large files into parts, asks storage what already arrived, and cleans up unfinished uploads. Interrupt one yourself to see what it costs.

Engineering8 min read

Fig. 048 MB the most a dropped 10 GB upload loses

Sending a big file through a browser has one failure everyone knows. The bar hits 90%, the wifi drops for a second, and the upload restarts from zero. For a product built to move large files, that's the most expensive thing that can go wrong. That's why Nemi doesn't upload large files in one piece.

Here's what it does instead. We'll look at how a 10 GB file is split into parts, why a dropped connection only loses the parts in flight, and how an upload picks up after you close the tab. We'll also cover what happens to the parts of an upload that never finishes. Every number below comes straight from a constant in the uploader.

Why does a large upload start again from zero?

An ordinary upload is a single HTTP request. The browser opens one connection and streams the file down it, so the server either receives the whole body or nothing it can use. There's no standard way to say “carry on from byte 9,123,456,789” on a plain request. When the connection breaks, the only recovery is to send it all again. On a fast office line, that's annoying. On hotel wifi or a train, a large file may never arrive at all.

Storage services solved this long ago with multipart uploads. You start an upload, send the file as numbered parts in any order, and ask storage to stitch them into one object. Each part is its own small request. If one fails, you just send that part again. Nemi uses this directly from the browser, straight to storage.

How does Nemi split a large file?

Anything from 32 MB upwards is sent in 16 MB parts. Below that, a single request is simpler: one request, one signature, nothing to stitch. A 10 GB file becomes 640 parts. The browser keeps 3 parts in flight at once, and each one goes straight to storage with its own signed address, bypassing our servers.

Sixteen megabytes balances two costs. Storage requires every part except the last to be at least 5 MB, so parts can't be tiny. At the same time, larger parts waste more data when a request fails, and on a shaky line you want cheap retries.

There's one more limit at the other end: storage accepts at most 10,000 parts per upload. Business allows a single file of 200 GB, which at 16 MB would take 12,800 parts. For files that large, the part size grows instead (21 MB for a 200 GB file, or 9,753 parts). The server calculates the part size and sends it to the browser, so both sides always agree on where each part starts.

Interrupt an upload

In parts: 256 parts of 16 MB

0 min 00 s

In one request

0%

Press Start, then interrupt it whenever you like.

Parts on storage
0/256
Stored so far
0 MB
Sent in parts, in total
0 MB
Sent in one request, in total
0 MB
Start the upload, then make the connection blink or close the tab. The parts lane uses Nemi's real part size, 3 parts in flight, the 5-hour resume window, and expectedPartLength, the function every part is signed against. Both lanes share whatever line speed you pick: this figure isn't about speed, only about what an interruption costs.

What happens when you close the tab?

The transfer stops, because a closed page can't send anything. Still, the parts that already arrived stay on storage. Before the first part went out, the browser saved a small note on your device recording which upload this file belongs to and how it was split. That note stays in the browser's local storage for 5 hours.

A browser can't reopen a file on its own; it has no path to it, only the file you hand it. So you trigger the resume yourself by dragging the same file into the same folder again. Nemi matches it by name, size, and last modified time, finds the note, and continues the same upload instead of starting a new one. That works after a reload, a closed tab, or a browser restart.

The life of one large upload

checks, then starts the uploadYour browserNemiStoragethe file's bytes, part by part

1/5You drop a large file

Nemi checks the plan and the storage first, then starts a multipart upload and hands the browser the part size.

Why does Nemi ask storage, not the browser?

The obvious way to resume is to have the browser remember which parts it sent and skip them next time. Nemi deliberately doesn't trust that list. A tab killed mid-request can't know whether its last part landed. If its memory were overly optimistic, the missing part would never be sent, leaving a silent hole in the finished file where the part count and total still look right.

The note on your device only says which upload to continue. Storage says what's in it.

So every attempt, including the first retry after a blink, starts by asking storage which parts exist and sends everything else. Recognising a file by name, size, and modified date has one weak point: two different files that match on all three look identical. That's rare, and it's one reason the note expires after 5 hours.

How much does a resume actually save?

At most, an interruption loses the parts in flight at that moment: 3 parts of 16 MB, or 48 MB. A single request loses everything it has sent so far. The chart shows that arithmetic for an upload interrupted at 90%, where it hurts most.

What an interruption at 90 percent throws away

One requestIn parts, as Nemi sends it

A 1 GB file

interrupted at 90 percent

922 MB
48 MB

A 10 GB file

interrupted at 90 percent

9 GB
48 MB

A 100 GB file

interrupted at 90 percent

90 GB
48 MB

A 200 GB file

interrupted at 90 percent

180 GB
63 MB
Arithmetic, not a measurement: a single request loses everything sent so far, while a parts upload loses at most the 3 parts in flight. Drawn on a log scale, or the parts bars would be invisible.

We haven't put a speed figure on any of this, and that's deliberate. Sending three parts at once helps on some connections and makes no difference on others, and a number measured on our line wouldn't tell you much about yours. What multipart guarantees is that the progress you've made stays made.

What happens to an upload you never finish?

Most people never think about this part, yet it costs real money. The parts of an unfinished multipart upload don't show up as a file. They're invisible in a normal bucket listing and can't be reached by name, but storage keeps them, and bills for them, until someone aborts the upload. Lose track of one and you pay for it forever.

So Nemi records every large upload the moment it starts, along with its upload ID, and expires that record after 6 hours. An hourly cleanup job finds expired records that weren't finished and aborts each upload, deleting its parts.

The browser's note expires an hour earlier, at 5 hours, so it never offers to resume an upload the server has already dropped. If you cancel an upload yourself, Nemi aborts it straight away, and the hourly sweep catches anything that call misses.

None of those parts ever count against your storage, and nothing appears in your workspace until the whole file arrives and passes checks. Outside a Vault, files up to 500 MB are scanned for malware; larger files aren't, as our security page explains.

16 MB

per part, for any file up to 156 GB

3

parts in flight at once

640

parts in a 10 GB upload

5 h

to drop the same file again and carry on

The honest limits

Resuming still needs you. Within one visit, the uploader retries on its own up to 3 times, picking up from what storage already has. After that, or if you close the tab, it waits for you to drop the file again. If you never do, the upload won't finish by itself, and after 5 hours it starts from scratch.

It also requires the same browser on the same device, because that's where the note lives. A private window that blocks local storage still uploads normally; it just can't resume after a reload. Finally, the file has to go back into the same folder of the same workspace, because that's where the upload was approved.

Within those limits, a big upload on a bad connection is no longer a gamble. A 10 GB file fits on Creator and up, and the largest single file Nemi accepts is 200 GB on Business; see pricing for the full breakdown.

For the step-by-step customer guide, see Uploading files in the help centre. To see how those files reach someone else, check the Files page or our guide to sending large files securely. Downloads face the same problem in reverse, which Nemi solves with a folder zip that streams.

Questions people ask

Why does my upload keep restarting from zero?

An ordinary browser upload is a single request. When the connection breaks, there's no standard way to continue from the middle, so it starts over. Uploading in parts avoids that. Nemi sends files of 32 MB and up in parts, so a dropped connection loses at most the three parts in flight.

Can I resume an upload after closing the tab?

In Nemi, yes. Drag the same file into the same folder within 5 hours of starting the upload, using the same browser on the same device. Nemi recognises it by its name, size, and last modified time, asks storage which parts already arrived, and sends only the rest.

Why upload a large file in parts?

Each part is its own small request, so a failure only costs that part and it can be retried on its own. Storage then stitches the numbered parts into one file. In Nemi, the browser keeps three parts in flight at once and sends them straight to storage, bypassing our servers.

What happens to an upload I never finish?

Its parts are thrown away. Nemi records every large upload when it starts, and an hourly cleanup aborts any that weren't finished within 6 hours, deleting the parts storage was holding. They never count against your storage, and nothing appears in your workspace until the whole file arrives.

What is the largest file I can upload to Nemi?

It depends on the workspace owner's plan: 500 MB on Free, 5 GB on Starter, 15 GB on Creator, 25 GB on Pro, 100 GB on Max, and 200 GB on Business. A 10 GB file needs Creator or higher.

Are uploaded files scanned for viruses?

Outside a Vault, files up to 500 MB are scanned for malware once the whole file arrives. Larger files and anything in a Vault aren't scanned, as our security page explains. Any file flagged as malicious is blocked before a recipient can reach it.

Where the numbers come from

  • Part size, threshold and the part count ceilinglib/storage/wasabi.ts (MULTIPART_PART_SIZE, MULTIPART_THRESHOLD, multipartPartSize)
  • Parts in flight, and resuming from what storage reportslib/upload-multipart.ts (PART_CONCURRENCY, uploadFileInParts)
  • The resume window, the slot life and the length of each partlib/resumable-uploads.ts (RESUME_RECORD_TTL_MS, UPLOAD_SLOT_TTL_MS, expectedPartLength)
  • The hourly sweep that aborts unfinished uploadslib/cleanup.ts (cleanupExpiredUploadSlots)
  • Largest single file per planlib/pricing-plans.ts (maxFileSize)

Use the thing we write about.

Files, docs, sheets, mail, photos, calendar and meetings in one account, built the way this post describes. Nemi is opening in groups: put your name down and we tell you when yours is up.

15 GB free when you get in. No card needed.