Uploading a .doc file to MW 1.19.1 (which, incidentally, isn't listed in the versions box here), I get the following error:
File extension ".doc" does not match the detected MIME type of the file (application/zip).
I tried removing "doc" from application/msword in /includes/mime.types and then also adding it to application/zip (recommended at ). The former edit did nothing; the latter resulted in:
The file is a corrupt or otherwise unreadable ZIP file. It cannot be properly checked for security.
I tried keeping the above modifications to /includes/mime.types and adding $wgAllowJavaUploads = true; to LocalSettings.php, as recommended at , and uploading of these files works correctly.
However, this seems pretty hacky. Surely allowing .doc files in $wgFileExtensions should be enough, and they shouldn't be treated as zip files or jars or anything?