Manual:$wgFileExtensions

Details
$wgFileExtensions is the list of allowed/preferred extensions for uploading files.

If $wgEnableUploads is set to false, this option has no effect since all uploading is disallowed.

If $wgCheckFileExtensions is false, this option has no effect since all file extensions will be permitted without performing any checks.

If $wgStrictFileExtensions is set to false, then users will only get a warning when uploading files with extensions not in this list. i.e. $wgFileExtensions is then only a preferred set of extensions. In this case some particularly dangerous file extensions will still be blocked using $wgFileBlacklist.

If $wgStrictFileExtensions is set to true (default) then this $wgFileExtensions array is the list of allowed extensions, and all others are blocked

Some files, for example Open Office documents, use mime types that don't match with their extension. These files uploads result in an error message like ''The file is corrupt or has an incorrect extension. Please check the file and upload again.''. In such cases you can adjust the mapping of file extensions to mime types, see MIME type validation.

Example
$wgFileExtensions is a php array, which is initialised with a default (sensible) set of file extensions. In LocalSettings.php you might use array operations such as...

Files without extensions (hack)
To allow uploading of files that don't have extensions, you will need to apply the following hack: Edit $IP/includes/SpecialUpload.php and at line 351 (in version 1.11.1), change

to In other words, comment out the action that is taken if there's no file extension.