Design a service for uploading, downloading, listing, and deleting user files with metadata (name, size, content-type). Large files should use multipart or resumable uploads. Enforce per-user authorization and optional time-limited download links.
Functional requirements
- Upload files with metadata and store them durably
- Download by file id with access control or signed URLs
- Delete files and free underlying storage
- List a user's files with pagination
Non-functional requirements
- Efficient handling of large objects via object storage
- Integrity verification (checksums, ETags) on upload
- Availability aligned with object-store and API tier SLAs