Manual:$wgStrictFileExtensions

Details
If this is turned off, users may override the warning for files not covered by $wgFileExtensions. $wgStrictFileExtensions=false;