← Blog

Secure File Uploads in Rails: Virus Scanning, MIME, and S3 Gotchas

1 min read

Uploads are malware, PII, and storage bills waiting to happen. This is the checklist we use for Rails + S3 (or compatible) in regulated-ish environments.

What you'll learn

  • MIME and extension traps
  • Size limits and signed URLs
  • Async scanning before files become “public enough”

Next steps

Never trust the browser’s Content-Type alone.