|Files and file uploads: $wgProhibitedFileExtensions|
|Files with these extensions will never be allowed as uploads.
|Introduced in version:||1.37.0 (Gerrit change 680806; git #4dae3b1a)|
|Removed in version:||still in use|
|Default value:||(see below)|
|Other settings: Alphabetical | By function|
Files with these extensions will never be allowed as uploads.
$wgFileExtensions, so you must remove an extension from the blacklist before you can upload files that have it.
For instance, to allow users to upload executables, add this to LocalSettings.php:
$wgFileExtensions = 'exe'; $wgProhibitedFileExtensions = array_diff( $wgProhibitedFileExtensions, [ 'exe' ] ); $wgMimeTypeExclusions = array_diff( $wgMimeTypeExclusions, [ 'application/x-msdownload' ] );
This configuration parameter used previously was wgFileBlacklist.