Manual:$wgStrictFileExtensions

From MediaWiki.org
Jump to: navigation, search

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil • ‎Tagalog
Uploads: $wgStrictFileExtensions
Toggle whether users may upload files not covered by $wgFileExtensionsManual:$wgFileExtensions.
Introduced in version: 1.2.0
Removed in version: still in use
Allowed values: (boolean)
Default value: true
Other settings: Alphabetical | By function

Details[edit]

If set to true, users will only be able to upload files with specifically permitted extensions (see $wgFileExtensionsManual:$wgFileExtensions).

If set to false, users will be able to upload files with almost any extension. A user attempting to upload a file whose extension is not in $wgFileExtensions will receive a warning message. However, they may choose to ignore the message and upload the file anyway (assuming the file's extension is not in the $wgFileBlacklistManual:$wgFileBlacklist).

Warning Warning: Setting this to false is insecure for public wikis.