SaaS Document Uploads: Choosing Between Server Relay and Presigned URLs
The article argues that private SaaS documents should go through a server relay for small files, or use backend-authorized presigned uploads for larger ones. It contends that the application, not the browser, must own decisions about object keys, tenant ownership, and record completion. Presigned uploads need a backend confirmation step that verifies the stored object before a document is marked ready. Direct browser-to-storage uploads are rejected as a default because CORS cannot be configured through the available storage workflow and must be verified separately. Clients should handle retries and keep pending or failed states visible rather than showing an optimistic completion.
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