Uploading a 20 GB folder over a typical home connection takes hours. Over that time, something will go wrong: the laptop sleeps, the Wi-Fi drops, the train enters a tunnel. Whether you lose minutes or the whole evening depends on one design decision in the service you use: does it upload the file in one piece, or in parts?

One long request vs. many small ones

The simplest upload sends the whole file in a single HTTP request. If the connection breaks at 95%, the server has an incomplete file it cannot use, and you start again from zero.

A resumable upload splits the file into fixed-size parts and sends each part separately. The server remembers which parts it already has. After an interruption, the client asks "what do you have?" and sends only what is missing. Losing the connection costs you, at most, one part.

How Sehihi does it

  1. Split. Your browser cuts each file into 8 MB parts. A 4 GB video becomes 500 parts.
  2. Fingerprint. Before the upload starts, the browser computes the SHA-256 hash of every part: a 64-character fingerprint that changes completely if a single bit changes. The list of fingerprints is registered with the server first.
  3. Upload and verify. Each part is sent separately. The server recomputes its hash on arrival and rejects any part that does not match, so a corrupted part is re-sent instead of silently saved.
  4. Assemble. When every part is in, the parts are joined into the original file, byte for byte.
  5. Resume. If you close the tab or lose the connection, select the same files again. Because the fingerprints are already known, Sehihi can tell they are the same files and continues with the missing parts. A different or edited file is refused rather than mixed in.

Why the part size matters

Parts that are too small waste time on per-request overhead; parts that are too large lose more work per interruption and use more memory. Around 5–16 MB is a common sweet spot for browser uploads, which is why many storage systems use a similar size.

Tips for very large uploads

  • Plug in the laptop and stop it sleeping. Most operating systems pause network activity when the lid closes.
  • Use a cable if you can. Wired connections drop far less often than Wi-Fi, and upload speeds on home connections are usually much lower than download speeds.
  • Don't zip first unless you need to. Video, photos and most modern documents are already compressed, so zipping saves little and adds a long step before the upload starts. Sehihi can send whole folders as they are.
  • Keep the original files where they are until the upload has finished, so you can resume if needed.

Curious how the recipient can check they got exactly what you sent? Read how to verify a file with SHA-256.