Skip to content

Security

Make file uploads safe

Users can upload anything of any size into a bucket that may be public.

What you get
Limits on type and size, private storage by default, and uploads that can’t overwrite each other.
Paste it into
Your AI tool, in your project
The prompt
Review how file uploads work in this project.

Trace an upload from the form to where the file ends up. Check: is the type checked on the server and not only by file extension, is there a size limit, can someone upload without being signed in, is the bucket public, can a file name chosen by the user overwrite another user's file or escape its folder, and are files served in a way that could run as a page on my domain?

Fix what's missing: server-side type and size checks, generated file names, per-user folders, and private storage with short-lived links where files are personal. Tell me the storage settings to change in the dashboard.

Use it

Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.

More in Security