Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgCheckFileExtensions and the translation is 29% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎中文 • ‎日本語
Téléversements: $wgCheckFileExtensions
Check if the file extension is allowed on upload.
Introduit dans la version :1.2.0
Retiré dans la version :Encore utilisé
Valeurs autorisées :(booléen)
Valeur par défaut :true
Autres paramètres : Alphabétique | Par Fonction


If true, all uploaded files will have their file extension checked, 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.

Avertissement Avertissement : Setting this to false is insecure for public wikis.
Version de MediaWiki : 1.13

In 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 $wgStrictFileExtensions variable may have the desired effect. This bug was corrected in version 1.13.0 (tâche T16220).

Voir aussi