param087/saas-starter-skills/file-uploads-and-storage
Claude Code and agent skill by param087/saas-starter-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when handling user file uploads — upload directly to S3/R2/Supabase Storage with presigned URLs, validate type and size, scope objects per tenant, and serve them back securely without proxying bytes through your server.
Install
npx vskill@latest install param087/saas-starter-skills/file-uploads-and-storageSKILL.md
The same SKILL.md was published earlier as param087/saas-starter-skills/file-uploads-and-storage.
File Uploads & Storage
Overview
Don't stream uploads through your app server — it's slow, memory-hungry, and hits serverless body limits. Instead, issue a presigned URL so the browser uploads directly to object storage (S3, Cloudflare R2, or Supabase Storage), then store only the object key + metadata in your DB. Validate type/size before signing, namespace keys per tenant, and serve private files via short-lived signed download URLs.
When to use
- Users upload avatars, attachments, imports, or documents.
- Files are large or uploads are slow/timing out through your API.
- You need per-tenant access control on stored files.
Presigned upload
The client PUTs the file to url, then tells your API the key to persist (in a tenant-scoped row).
Serving files back
- Private by default. Buckets block public reads; generate short-lived signed GET URLs on demand.
- Authorize downloads — verify the requester's org owns the
keybefore signing. - Process async — thumbnails/virus-scan/transcode run in
background-jobs, keyed off the upload.
Pitfalls
- Proxying bytes through the API — memory blowups and serverless payload limits; use presigned URLs.
- Trusting client-reported content-type/size — allowlist types and cap size in the signing request; verify after upload.
- Public buckets for private data — leaks every file via a guessable URL. Keep private, sign reads.
- Un-namespaced keys — without
orgs/<id>/..., one tenant can reference another's objects. - Storing the file in Postgres — store the key + metadata; keep bytes in object storage.
Hand-off
Direct-to-storage uploads with tenant-scoped keys. background-jobs post-processes; data-access-layer stores keys; observability-and-errors tracks failures.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/file-uploads-and-storage/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/param087/saas-starter-skills/file-uploads-and-storage)