Manual:$wgCheckFileExtensions
From MediaWiki.org
| Uploads: $wgCheckFileExtensions | |
|---|---|
| This is a flag to determine whether or not to check file extensions on upload. |
|
| Introduced in version: | 1.2.0 |
| Removed in version: | still in use |
| Allowed Values: | (boolean) |
| Default Value: | true |
Other settings: Alphabetical | By Function
[edit] Details
If true, all uploaded files will have their file extension compared, depending on various configuration settings (see below), to determine whether the upload will be allowed.
If false, most file extension checks will not take place. In this case, almost all file uploads will be allowed. As of version 1.11.1, there appears to be a bug that prevents this setting from actually working. (SpecialUpload.php line 353 isn't checking the value of this variable like it should.) Due to this, it is unclear from the code whether $wgCheckFileExtensions was intended to override $wgFileBlacklist. The strictFileExtensions variable may have the desired effect. This bug was corrected in version 1.13.0.