2 ms·
> If a user uploads a PNG (or whatever), and you've validated it for that content type, don't serve it from your servers with a different content type. I can s
by krapp 11y ago
> If a user uploads a PNG (or whatever), and you've validated it for that content type, don't serve it from your servers with a different content type.
I can see changing the suffix for image types and converting the image on the fly - I don't know why that would be useful, but I can imagine someone doing that. But at the very least don't allow sending something you know to be an image with non-image headers.