AlgoViz

File upload APIs

medium 26 min

Small files go up in one multipart request.

Where it shows up

The same pattern appears across everyday software.

  • Video sites

    YouTube's API offers a resumable protocol: start a session, send ranges, ask for the status after a break and continue.

  • Backups to object storage

    Backup tools cut archives into parts, send several at once and store a checksum for each part.

  • Photo apps on phones

    Uploads run in the background and survive closing the app, so the session is stored on the device.

  • Document portals

    Small files come by a normal form. A scan runs before anybody else can open them.

  • Data science

    Data sets of hundreds of gigabytes go up in parts with signed URLs, because no application server should carry them.

  • Chat attachments

    The client uploads the file first, gets an id, and then sends a message that only contains the id.