The file was a .doc, but I've tried changing it to docx and get the same result. Some other .doc and .docx files that are word 2007 upload no problem. But I don't see how it can complain when I have the MimeType verification disabled - completely disabling the verification would be no problem since only specific users can upload.
p.s. this is a MW 1.19.2 on Ubuntu Server 11.10 with PHP 5.3.6 On 07/01/13 21:21, Matma Rex wrote: > On Mon, 07 Jan 2013 23:47:58 +0100, Aran Dunkley > <[email protected]> wrote: > >> Hello, can someone please help me with this .doc upload problem? I've >> tried everything and even setting $wgVerifyMimeType to false fails to >> solve it. No matter what I do I keep getting the following error when I >> upload *some* word 2007 .doc files: >> >> The file is a corrupt or otherwise unreadable ZIP file. It cannot be >> properly checked for security. >> >> I don't know how that check can even be happening with $wgVerifyMimeType >> disabled, but still the error occurs?! > > Word 2007 uses a .docx format as far as I know, not .doc. Which one > were you using in your configuration? > > Also, .docx files are essentially ZIP files with magic data inside. > > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
