# Make file uploads safe

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

Web page: https://buildladder.com/resources/prompts/file-uploads

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

## Prompt to copy

```text
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.
```
