Secure File Upload Architecture
Design case
Users need to upload potentially large and untrusted files without forcing the application server to proxy every byte.
Secure flow
Client → authorization API → scoped upload → object storage → validation → approved processing
The upload permission should be narrowly scoped to the intended operation. Treat uploaded content as untrusted until validation is complete.