Tenant Image Upload Retention: Presigned URLs and Proxy Backends in Node.js
Short answer: for a B2B SaaS that stores product images and later creates tenant-scoped exports, let the browser upload directly to private object storage with a short-lived presigned URL. Keep the proxy backend as a deliberate control point for exceptional files, not as the default byte path. The deciding factor is retention: the upload method must make ownership, expiry, deletion, and export…
In the article "Tenant Image Upload Retention: Presigned URLs and Proxy Backends in Node.js," the author discusses the importance of retention in a B2B SaaS that stores product images and creates tenant-scoped exports. The author recommends using presigned URLs for direct uploads to private object storage, rather than relying on a proxy backend as the default method.
This approach allows for better ownership, expiry, deletion, and export isolation, making it easier to prove and manage these aspects. The author also highlights the benefits of using a presigned URL method in terms of simplicity, security, and reduced latency for normal images and large media files.
Brief written by urgent.news; may contain errors — check the original.
Source: dev.to