01Chapter 1: Start from requirements: file sizes, types, latency, and trustThis chapter assumes you know HTTP methods, headers, and status codes. It also assumes you understand a basic web architecture with a client, an API server, and a database, and that you have a general idea of what object storage such as Amazon S3 is. You do not need to have built an upload feature b2 min read
02Chapter 2: The simple path: multipart uploads through your API serverThis chapter assumes you know HTTP methods, headers, and status codes, and that you have written a server endpoint in one language. It also assumes you know roughly what object storage such as Amazon S3 is.2 min read
03Chapter 3: Why files belong in object storage, and how to name keysThis chapter assumes you know HTTP basics, have a client, API server, and database architecture in mind, and have a general idea of what Amazon S3 is. It covers where uploaded files should live and how to name them.2 min read
04Chapter 4: Uploading directly to storage and keeping your servers out of the data pathThis chapter assumes you know HTTP methods and headers, the client, API server, and database layout of a web app, and what object storage such as Amazon S3 is. It also assumes you have read the previous chapter on proxied uploads and on object storage and key design.3 min read
05Chapter 5: Presigned URLs and POST policies: granting narrow, short-lived accessThis chapter assumes you know HTTP methods and headers, what S3-style object storage is, and how a client talks to an API server. It builds on the previous chapter, where the client uploads straight to storage so your servers stay out of the data path.2 min read
06Chapter 6: Validating uploads: size limits, type allowlists, and content signaturesThis chapter assumes you know HTTP headers and status codes, and that you have read the previous chapter on presigned URLs and POST policies. Everything a client sends is untrusted. The file name, the Content-Type header, and the size the client claims can all be false. Validation means checking e2 min read
07Chapter 7: Chunked and resumable uploads for large files and unreliable networksThis chapter assumes you know how presigned URLs work, what an S3-style object store is, and how HTTP PUT and response headers behave. A single presigned PUT or POST is fine for small files. For a multi-gigabyte video on a mobile connection, one dropped packet near the end means starting over. Chunk3 min read
08Chapter 8: Scanning and quarantining untrusted filesValidation checks the size, the declared type, and the first bytes of a file. It cannot tell you whether the file is harmful. A valid PDF can carry a malicious script, and an Office document can hide a macro. This chapter assumes you know presigned uploads and basic validation from the earlier chapt2 min read
09Chapter 9: Reacting to completed uploads with an asynchronous pipelineThis chapter assumes you know how presigned uploads work, that you have a bucket with a quarantine prefix, and that you have used a queue or a serverless function before. Once the browser has sent a file straight to storage, your API server never sees the bytes. Something else has to notice the uplo2 min read
10Chapter 10: Generating image variants and modern formatsThis chapter assumes you know how uploads reach object storage and how an event can trigger a worker after an upload completes. It covers what that worker does with an image: it makes smaller copies (variants) in modern formats.2 min read
11Chapter 11: Delivering through a CDN with immutable, cacheable URLsThis chapter assumes you know HTTP headers and status codes, and that your files already sit in object storage. It covers how to put a CDN in front of that storage and make cached copies safe to keep for a long time.3 min read
13Chapter 13: Video: transcoding and adaptive bitrate streaming with HLS or DASHThis chapter assumes you know how the post-upload pipeline works (an object-created event triggers asynchronous jobs) and how a CDN caches files by URL. It also assumes you know what a range request is. Here you will see how a raw uploaded video becomes something a browser can play smoothly on any c3 min read
14Chapter 14: Controlling who can fetch media: signed URLs and signed cookiesThis chapter assumes you know how a CDN caches content and how presigned upload URLs work. Public media can be cached by anyone. Private media, such as invoices, paid videos, or personal photos, needs a check before the CDN serves it.2 min read
15Chapter 15: Serving user content safely: headers, domains, and download behaviorThis chapter assumes you know HTTP headers, the browser's same-origin policy, and how uploads reach object storage. Validation at upload time is not enough. A file that passes every check can still hurt users if the browser treats it as a page. Safe serving is the second line of defense.2 min read
16Chapter 16: Lifecycle rules, orphan cleanup, and egress costThis chapter assumes you know how presigned uploads, a quarantine prefix, and a CDN fit together from earlier chapters. It covers three ways media systems quietly waste money: files that nobody uses, unfinished uploads, and bytes that leave your network more often than they should.2 min read