file-upload
Installation
SKILL.md
File Upload Patterns Skill
Purpose
Implement secure, efficient file uploads from client to server or directly to cloud storage. Covers validation, progress tracking, presigned URLs for large files, and drag-and-drop UX.
Upload Strategy Decision
| Method | Max Size | Complexity | Best For |
|---|---|---|---|
| multipart/form-data | ~10MB | Low | Simple forms, small files |
| Presigned URL (S3/R2) | 5GB | Medium | Large files, serverless |
| Chunked/Resumable | Unlimited | High | Video, unreliable networks |
| Base64 in JSON | ~1MB | Low | Avatars, thumbnails only |