Manual:$wgCheckFileExtensions

Details
$wgCheckFileExtensions = false; This is a flag to determine whether or not to check file extensions on upload.