Manual:$wgVerifyMimeTypeIE

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