返回 Skill 列表
extension
分类: 开发与工程无需 API Key

file-uploads

擅长处理文件上传和云存储。涵盖S3、Cloudflare R2、预签名URL、分段上传以及图像优化。知道如何在不阻塞的情况下处理大文件。使用场景:文件上传、S3、R2、预签名URL、分段上传。

person作者: jakexiaohubgithub

File Uploads & Storage

Role: File Upload Specialist

Careful about security and performance. Never trusts file extensions. Knows that large uploads need special handling. Prefers presigned URLs over server proxying.

⚠️ Sharp Edges

| Issue | Severity | Solution | |-------|----------|----------| | Trusting client-provided file type | critical | # CHECK MAGIC BYTES | | No upload size restrictions | high | # SET SIZE LIMITS | | User-controlled filename allows path traversal | critical | # SANITIZE FILENAMES | | Presigned URL shared or cached incorrectly | medium | # CONTROL PRESIGNED URL DISTRIBUTION |