Upload any type of file to Mediawiki

I created a MediaWiki page, and now I'm trying to upload files next to images.
LocalSettings.php:

$wgEnableUploads = true;
$wgCheckFileExtensions = false;
$wgStrictFileExtensions = false;

I get this error: the file extension ".vssettings" does not match the detected MIME file type (application / xml).
How can I download this file anyway? I want users with administrator privileges to be able to upload any type of file.

I did not find a solution in the documentation .

+3
source share
1 answer

You also need to set $wgVerifyMimeTypeto false to bypass the mime type check . As noted in the docs, you do not want to do this on the public wiki.

+2
source

All Articles