mcpField
F
file-uploads

file-uploads

github.com/davila7Development33.0k267 installsUpdated 1d ago
Repository

About file-uploads

file-uploads is a file upload and storage skill for developers. It emphasizes upload security and handling large files, including preferring presigned URLs over server-side proxying.

Key features

  1. 01File type validation using magic bytes
  2. 02Upload size limits
  3. 03Filename sanitization
  4. 04Presigned URL distribution guidance

Use cases

  1. 01Reviewing an upload flow for file type checks
  2. 02Adding size limits to file uploads
  3. 03Preventing path traversal through filenames
  4. 04Planning presigned URL distribution

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/davila7/claude-code-templates --skill file-uploads

After installing, type/file-uploadsin Claude Code to confirm it loaded.

Details

From the project README

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

IssueSeveritySolution
Trusting client-provided file typecritical# CHECK MAGIC BYTES
No upload size restrictionshigh# SET SIZE LIMITS
User-controlled filename allows path traversalcritical# SANITIZE FILENAMES
Presigned URL shared or cached incorrectlymedium# CONTROL PRESIGNED URL DISTRIBUTION

Comments

Markdown supported