Secure file uploads
Created by CodeCraft LLCImplement and review secure file uploads and downloads
Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.
by Jace (@jamick)v1.4.2 · updated 2026-12-01Report copyright infringement
Description
Implement and review secure file uploads and downloads — direct-to-storage signed uploads (Supabase Storage, S3/R2 presigned URLs), size and content-type validation by magic bytes, random storage keys, private buckets and signed download URLs, safe serving (Content-Disposition, separate domain for untrusted content, no inline HTML/SVG from your origin), image re-encoding and EXIF stripping, archive handling (zip slip, zip bombs), malware scanning, resumable uploads, quotas, orphan cleanup, and storage policies. Use whenever users upload or download files (avatars, attachments, documents, packages, zip archives), the user configures buckets/storage policies, or reviews upload, download, or archive-processing code.
Included with all-access
$9.00 one-time, permanent access
or
Buy 2 or more together for up to 40% off · View cart
You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms
Official and free skills are included with the all-access subscription
Changelog
Subscribers also see which files changed in each version.
v1.4.2Dec 1, 2026Latest
Changed
- README **Sources**: links now point at the publisher's openly licensed GitHub copy of the same docs (CC BY 4.0, Apache 2.0, MIT or the W3C Software and Document License), so the skill rests on the open license rather than the website's terms of use.
v1.4.1Dec 1, 2026
Added
- README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.4.0Nov 26, 2026
Changed
- Checked against the AWS S3, Cloudflare R2, Supabase Storage, sharp, GuardDuty and OWASP File Upload docs (November 2026).
- Corrected the signed-upload rule: R2 doesn't support presigned POST, and presigned PUT can't cap size and can be reused until expiry. Added what each signer enforces and expiry ceilings.
Added
- Pending-until-validated rule for direct uploads; download gated on scan result.
- sharp specifics (default metadata strip,
limitInputPixels,.rotate()), GuardDuty Malware Protection for S3, filename sanitizing andContent-Dispositionencoding, multipart-abort lifecycle rule. - Pitfalls and checklist items for the above.
v1.3.0Nov 20, 2026
Added
- Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.2.0Nov 6, 2026
Changed
- Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.1.0Nov 4, 2026
Changed
- Review report rule at the top of the skill, loaded before any review: one entry per finding as
Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative. - Removed pointers to the privacy skill, which left the library.
v1.0.2Oct 31, 2026
Changed
- References updated for renamed skills:
supabaseis nowsupabase-platform,eas-workflowsis noweas-workflows-ci,skill-creatoris nowskill-creator-aiskillz.
v1.0.1Oct 3, 2026
Changed
- Added a trademark notice to the README.
v1.0.0Oct 2, 2026
Added
- First release.