Manual:$wgVerifyMimeTypeIE

Details
This is a conservative check for exactly what Internet Explorer 6 or so checked for, and shouldn't trigger on, for instance, JPEG files containing links in EXIF metadata.