Stop Routing File Uploads Through Your Server. Use S3 Presigned URLs Instead.
If your app lets users upload files, profile pictures, documents, attachments, there's a good chance the upload flow looks like this: client sends the file to your backend, backend forwards it to S3. It works, but it means your server is spending compute and bandwidth just relaying bytes it doesn't need to touch. S3 presigned URLs fix this. They let your backend generate a temporary, permission-scoped URL that the client uses to upload (or download) directly to S3, no file ever passes through your server.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article