Wiki – Upload .doc or .xls errors


The file is corrupt or has an incorrect extension. Please check the file and upload again.


$wgVerifyMimeType = false;

Other checks are to make sure the following are set:

$wgEnableUploads = true;

$wgFileExtensions = array( ‘doc’, ‘xls’, ‘png’, ‘gif’, ‘jpg’, ‘jpeg’, ‘ogg’, ‘zip’);
in LocalSettings.php which should be in your root wiki directory (not config).

See also:

Leave a Reply

Your email address will not be published. Required fields are marked *