20130206 new ms office file types vs mediawiki - plembo/onemoretech GitHub Wiki

title: New MS Office file types vs Mediawiki link: https://onemoretech.wordpress.com/2013/02/06/new-ms-office-file-types-vs-mediawiki/ author: lembobro description: post_id: 4242 created: 2013/02/06 15:37:22 created_gmt: 2013/02/06 19:37:22 comment_status: closed post_name: new-ms-office-file-types-vs-mediawiki status: publish post_type: post

New MS Office file types vs Mediawiki

With the proliferation of MS Office 2007+ we've been having problems with uploading the new "x" file types to older MediaWiki sites. Really unsatisfying solution follows. The docx, xlsx, etc. file files are actually compressed xml files. Older versions of MediaWiki are having trouble with these. A quick (and totally insecure) fix is to add the following to LocalSettings.php:

$wgVerifyMimeType = false;

This will cause the software to skip verifying the MIME type. It technically opens up a security hole and so isn't a final solution, but at least it will get you working while researching the issue.

Copyright 2004-2019 Phil Lembo