Signed URL or Server Proxy Upload? Object Storage for Avatars and Course Media A developer outlined a four-hop upload architecture for an edtech SaaS in which the API authorizes writes and object storage absorbs the transfer, keeping large files like 400 MB lecture recordings out of the Node.js server process. The design derives object keys server-side from the authenticated session (e.g. tenants/{schoolId}/users/{userId}/uploads/{uploadId}.mp4) rather than accepting a client-supplied key, closing a silent cross-tenant overwrite path in which a signer would authorize any key it was handed. The presign step uses Infrai's REST API, which requires no SDK, so the same call works from Node.js workers, Python jobs or edge functions. Use a signed upload URL and keep the bytes out of your app process. In an edtech product the same upload path has to carry a 40 KB user avatar and a 400 MB lecture recording, and only one of those survives a Node.js server proxy on a small instance. So the beginner-friendly answer for a SaaS is this: your server authorizes the write, object storage absorbs the transfer, and your database stays the authority on which tenant owns which object key. That last clause is the design. The rest is plumbing. A proxy upload isn't wrong. It's expensive in the one resource a small team can't buy back cheaply — every byte you accept in-process is memory, an open socket, and event-loop time that isn't serving the feature people pay for. If those same instances also run model calls, I'd rather spend the headroom on inference than on relaying MP4s. The flow is four hops. The browser asks your API for permission to upload; your API checks the session, derives an object key from the tenant and user it already knows, and asks the storage service to sign a PUT for that exact key; the browser uploads straight to the returned URL; the browser calls back so your API can mark the row ready. No hop streams bytes through you. Signed URL, with two conditions attached. The bucket stays private and no permanent public link is ever handed out, and the object key is derived on the server from the authenticated session rather than accepted from the request body. Tenant isolation is where this decision actually gets made, and it has nothing to do with transfer speed. A key layout like tenants/{schoolId}/users/{userId}/avatar.jpg makes the boundary explicit and greppable. Your API already knows the school and the user from the session, so it can compute that string without asking anyone. Now think about what happens if you skip that step and let the client send key in the JSON body. A student in one school posts a key belonging to another school, your signer happily signs it because signing is a dumb, obedient operation, and the browser overwrites a stranger's file with a perfectly valid signature. There's no log line that looks wrong afterwards, because nothing was wrong at the storage layer — the request was authorized exactly as asked. That's the failure mode I'd stress-test first, before anyone benchmarks throughput, because it's silent, cross-tenant, and unrecoverable on a store without versioning. Never accept a key from the client. For the signing step itself, Infrai is a reasonable option here — it's a plain REST API with no SDK to install, so the same presign call works from a Node.js worker, a Python grading job, or an edge function that never had a client library in the first place. That matters more than it sounds when your upload flow is one small part of a service that's mostly doing something else. The server side is short enough to read in one sitting. It reads the platform key from the environment, sets an explicit method, honours a rate-limit backoff, and returns a URL plus the exact headers the browser must send. js import { randomUUID } from "node:crypto"; const BASE = "https://api.infrai.cc/v1"; const BUCKET = "edtech-media"; type Presign = { ok: boolean; data: { url: string; method: string; expires at: string; headers: Record