LeakyVibe

Does your app have this problem? Free scan, 15 sec, no sign-up

or watch it scan our demo app ▶

Blog ·

Let users upload files? Limit the type and size on the server

If your app has an avatar or document upload, the AI builder often wires it straight to Supabase Storage or S3 with no limits. The file picker might say images only, but that check runs in the browser and anyone can skip it.

That lets someone upload a huge file to run up your storage bill, or an HTML or SVG file that runs scripts when another user opens its link.

The fix: set a size limit and an allowed file type list on the bucket itself (Supabase lets you set both per bucket), or check them in your server code before saving. Allow only what you need, like JPEG, PNG and PDF, and rename files instead of keeping the user's file name.

Want an outside check of your live app? Run the free scan at leakyvibe.com/?demo=1&ref=blog-limit-file-uploads-by-type-and-size. It takes about 15 seconds.

Check your app for this now

Free scan · about 15 seconds · no sign-up

Passive, read-only checks. Only scan apps you own or have permission to test.