What problem does it solve?
This Skill prevents risky or inefficient file handling by standardizing a secure, scalable pattern for storing user-uploaded files in AWS S3 from a Python backend.
Core Features & Use Cases
- Direct browser uploads with pre-signed URLs: Generates pre-signed PUT URLs for uploading and pre-signed GET URLs for downloads without proxying file bytes through your server.
- MIME allowlist validation and key-first persistence: Validates allowed MIME types before signing and stores only the S3 object key in your database, generating signed download URLs on-demand.
- Upload confirmation for integrity: Requires a follow-up confirm call where the server verifies the object exists in S3 (via head_object) before persisting the key.
Quick Start
Implement presign endpoints that return a signed upload URL and an object key after validating MIME type, then implement a confirm endpoint that verifies the key exists in S3 before saving it in your database.