How to Upload User Avatars with Node.js and Store Metadata in S3-Compatible Storage
Short answer: keep tenant isolation in the application, keep avatar objects private, and make storage a replaceable contract. The database should own the tenant, object key, content type, and validation result. Object storage should hold bytes and metadata.