Topic on Project:Support desk

Jump to navigation Jump to search

Some Doc, Xls and other files detected as zip files

Zarg404 (talkcontribs)

Hi, I am using mediawiki for years. Since 1.18.1, I am at 1.18.2, I found some strange problems. I am not allowed to upload some .doc, .xls and others types of files. The error is

The file is a corrupt or otherwise unreadable ZIP file. It cannot be properly checked for security.

I think there is a bug in the detection Algorithm. I try to turn off all the checks and securities:

$wgVerifyMimeType = false;
$wgFileExtensions = array( 'gan' , 'mov','skp', 'avi', 'cfg', 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'doc', 'xls' , 'pdf', 'ods', 'JPG','qet','zip');
$wgCheckFileExtensions = false;
$wgStrictFileExtensions = false;
$wgMimeTypeBlacklist = array();
$wgFileBlacklist = array();

My DOCS and XLS are regular ones modified and not all the time created with Office 2011 on Mac OS 10.6.8. Do you have any idea ?

Thank you

Krenair (talkcontribs)

What? I thought the newer Office formats (docx, xlsx, etc.) ARE zip files.

Zarg404 (talkcontribs)

That's true for one of my xls file. I can unzip it !

But what I don't understand is that I removed all the securities of my wiki to prevent this problem.

Zarg404 (talkcontribs)

I just installed 1.18.3 and same problem.

Reply to "Some Doc, Xls and other files detected as zip files"