From role-fullstack
Implements secure file upload flows using presigned URLs for S3/GCS/R2, multipart/tus resumables, Sharp image processing, drag-and-drop UI with progress, MIME validation via magic bytes, virus scanning, and CDN serving. For profile pics, documents, media galleries.
How this skill is triggered — by the user, by Claude, or both
Slash command
/role-fullstack:file-upload-handlingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Implementing profile picture or avatar upload
Content-Type headerreferences/upload-strategies.md — strategy selection table (multipart form vs presigned URL vs tus), presigned URL flow steps, AWS SDK v3 code example, progress indicator with XMLHttpRequest, CDN serving with signed URLs and cache headersreferences/validation-security.md — client-side vs server-side validation responsibilities, magic byte MIME checking, ClamAV/cloud malware scanning, Sharp image processing pipeline, react-dropzone UI patterns, common pitfallsnpx claudepluginhub rnavarych/alpha-engineer --plugin role-fullstackHandles secure file uploads with presigned URLs, multipart/tus support, Sharp image optimization, FFmpeg video transcoding, ClamAV virus scanning, and post-upload processing for S3/GCS/Azure.
Handles secure file uploads to S3 and Cloudflare R2 with presigned URLs, multipart uploads, image optimization, and large file streaming. Addresses security pitfalls like magic byte validation and size limits.
Secures file upload endpoints against malicious files, path traversal, resource exhaustion, and code execution. Validates by magic bytes, enforces size limits, generates random filenames, and stores outside web root.