
Featured · Security
File type validation for user uploads: why MIME types lie and how to check what a file really is
The browser's Content-Type header and the file extension are both supplied by the uploader — and both can lie. How to validate what a file really is, with magic bytes, decoding, and safe serving.
20 Nov 2026 · 5 min read







