Implementing Signed Browser Upload URLs for Private File Storage (With Deletion Deadlines)
Short answer: For signed B2B documents, keep the file body out of the application server: record a durable upload intent and deletion deadline, issue a narrowly scoped upload capability, let the browser write to private storage, and accept the document only after independently verifying the stored object. The upload response is not the commit point. Verification is. Cost begins with retained…
Implementing signed browser upload URLs for private file storage involves recording a durable upload intent and deletion deadline, issuing a narrowly scoped upload capability, and letting the browser write to private storage. Verification of the stored object is the commit point. The cost begins with retained capacity, which can be calculated using the formula documents per month x mean bytes per document x retained months.
Compression and deletion of expired objects can help reduce costs, but once deletion occurs, the body cannot be recovered for future disputes. This approach is suitable when large files would otherwise consume application bandwidth and workers, and the control plane can independently verify object evidence. However, it is not suitable when policy requires every byte to pass through application-layer inspection before persistence or when the storage system cannot enforce retention and deletion semantics.
Brief written by urgent.news; may contain errors — check the original.
Source: dev.to