File Uploads & Cloud Storage

•
40k
•

Implements secure, high-performance file upload and cloud storage systems using S3, Cloudflare R2, and presigned URLs.

This skill transforms Claude into a File Upload Specialist, capable of architecting robust storage solutions that prioritize security and performance. It provides expert guidance on implementing direct-to-cloud uploads via presigned URLs, handling multipart uploads for large files, and enforcing critical security measures like magic byte validation and filename sanitization. Whether you are building a simple image uploader or a complex media storage system, this skill ensures your implementation avoids common pitfalls like path traversal, memory exhaustion, and MIME-type spoofing.

主要功能

01Advanced file validation including magic byte verification and MIME-type checking
02Path traversal protection through automated filename sanitization and UUID generation
03Efficient handling of large files via multipart uploads and streaming to prevent server blocking
04Security-first configurations for file size limits and presigned URL expiration
05Secure direct-to-cloud uploads using S3 and Cloudflare R2 presigned URLs
0640,494 GitHub stars

使用场景

01Refactoring existing upload logic to support direct-to-bucket transfers, reducing server load
02Implementing a secure profile picture upload system with image optimization
03Architecting a large-scale document storage solution using AWS S3 or Cloudflare R2