File Uploads & Object Storage
Accept, validate and store user files safely, using object storage and presigned URLs instead of the API server's disk.
3 objectives 5 steps about 105 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Accept multipart uploads with size limits, streaming them instead of loading whole files into memory, and validate type from file content rather than the client's filename or header.
- Store files in S3-compatible object storage with metadata in the database, and serve them through short-lived presigned URLs.
- Let clients upload large files directly to object storage with presigned uploads, and post-process them asynchronously before marking them available.
Lesson plan
5 steps, about 105 min · 4 of 4 lessons available so far
- Why Files Do Not Belong on the API Server's Disk Concept · 15 min
- Receiving Uploads Safely Worked example · 25 min
- Lab: Object Storage with Presigned URLs Lab · 30 min
- Large Uploads and Post-Processing Pipelines Concept · 20 min
- Check: Review an Upload Feature for Threats Knowledge check · 6 questions
Practise it
Add attachment uploads to your service backed by MinIO: enforce size and type limits, store metadata rows, return expiring presigned download URLs, support direct-to-storage upload for files over 10 MB, and generate thumbnails in a background job.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.