You have watched the bar crawl for forty minutes. It reaches 96%, then stops. A minute later the tab flashes red, or worse, nothing happens at all and you are left guessing whether to wait or start over. If you have sent large files with a browser uploader, this has happened to you. It is not bad luck, and it is not your connection. It is the shape of how server uploads work.

Upload progress bar stalling near the end

The last 4% is not "almost done" — it is the most expensive part

A server upload has two phases, and the progress bar mixes them into one number:

  1. Bytes in flight. Your file streams from the browser to a storage endpoint. This is the part that moves at your upload speed and it is what the bar mostly measures.
  2. Commit. When the last byte lands, the storage layer still has to finish multipart assembly, checksum the whole object, replicate it, and only then return success. On a 5 GB object, that step is not instant. It is a full pass over the data on the server side.

So the bar says "96%" while the transfer is technically finished and the object is not. If the session token expires during the commit — and session tokens for long uploads routinely have lifetimes shorter than the upload — you get a failure exactly at the end. The bytes were sent. They just do not belong to a completed object.

There is a second, quieter version of this: retry accounting. Uploaders retry failed chunks. Each retry resends bytes you already paid for. On a flaky mobile connection the retry budget runs out before the object completes, and the client reports a generic error that hides the real cause.

Why "just resume it" is harder than it sounds

Resumable uploads exist, and they help. But they depend on the server keeping a partial object alive between attempts. That partial object competes for storage with everything else, so it gets a time-to-live. Miss the window — laptop slept, train went into a tunnel, you closed the lid — and the partial object is gone. Resume becomes restart, and the restart can fail in the same place.

None of this is a criticism of any particular product. It is what you get when a file has to exist somewhere in the middle, in a place you do not control, for a duration you do not control.

The peer-to-peer shape

ZetaShare sends the file directly between two browsers. There is no object being assembled on a server, so there is no commit phase and no partial object with a timer on it. The relevant pieces:

  • The file never leaves the two devices. Nothing is stored in the middle, so nothing can expire there.
  • Progress is the transfer. When the receiver's writer has every byte, the file is complete on disk. There is no second phase that can fail after the bar hits 100%.
  • Loss is handled in slices, not by restarting. The transport verifies pieces and re-requests only what was lost. A dropped connection during a 20 GB transfer does not reset the transfer, it re-requests the missing pieces.
  • The sender's tab is the only thing that has to stay alive. That is the real trade: no server means no server to wait on, but also no server to hold the file after you close the tab.

That last point matters, and we are not going to pretend otherwise. Peer-to-peer gives you a transfer that fails in small, recoverable ways instead of one large, unrecoverable way. Server uploads give you a transfer that either completes cleanly or dies at 96% with no information.

What to check when a transfer does stall

If you are debugging a large transfer — ZetaShare or anything else — measure these four things before you blame the tool:

  1. Upload speed, not download speed. Run a speed test and read the upload number. Home connections are often 10:1 asymmetric. At 20 Mbps up, 5 GB is 35 minutes of pure physics; no software changes that.
  2. Wired vs Wi-Fi. Ethernet commonly recovers 30–60% of lost throughput. This is still the single highest-value change.
  3. One tab, one transfer. Two large transfers in one browser profile compete for the same writer and the same connection pool. In our own testing, several tabs writing to the same profile is where files silently end up truncated — which is why ZetaShare now fails loudly instead of writing a short file.
  4. Disk space on the receiving side. A full disk produces a generic "failed" state that looks like a network problem. Check free space first.

The honest summary

Server uploads fail near the end because the end is a different operation than the transfer, with its own timer and its own failure modes. Peer-to-peer removes that operation entirely — at the cost of requiring both sides to be present while the bytes move. For "send this 8 GB folder to a colleague right now", that trade is usually the right one. For "host this file for a week so anyone can grab it", it is the wrong one, and you should use a server.

Knowing which of those two problems you have is most of the battle.