Manual:$wgTrivialMimeDetection

Details
This setting is for internal use only and is not normally required by end users.

This is set to true by thumb.php to disable all fancy MIME detection routines, because only a few types of images are needed and file extensions can be trusted.