Presigned Uploads and Private Buckets for Browser Avatar Ingestion
The article argues that browser avatar uploads should use short-lived presigned requests, but only as one step in a wider ingestion workflow. It recommends keeping the storage bucket private, with the server choosing the object key and enforcing upload constraints. After the upload, the server should verify the object before publishing an application-owned reference rather than a permanent public URL. The author lays out a simple flow in which a React client requests permission from a Next.js route, uploads directly to storage, and then calls a completion endpoint. The piece compares this approach with server-proxied and public-bucket alternatives, rejecting public buckets for user profile data because of revocation and disclosure risks.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in