Jump to content

Issue with MediaWiki MIME checking


jnojr

Recommended Posts

I installed MediaWiki 1.13.3  More and more often, we're getting messages about file uploads being corrupt, when they are not... they're well under both the MW and PHP size limits, the files open just fine, etc.  I've tried:

 

$wgMimeDetectorCommand = "file --brief --mime";

 

And:

 

$wgMimeDetectorCommand= "file -bi";

 

Then I commented both out to let MWs internal checking work.

 

On the MW forum, someone asked about mime.types:

 

[root@server ~]# grep mime.types /var/www/html2/wiki/includes/DefaultSettings.php

$wgMimeTypeFile= "includes/mime.types";

 

[root@server ~]# grep ppt /var/www/html2/wiki/includes/mime.types

application/vnd.ms-powerpoint ppt

[root@server ~]# grep PPT /var/www/html2/wiki/includes/mime.types

[root@server ~]#

 

Nobody there is responding any more.  I can't even find out how to generate some kind of logs or errors to get an idea of how to proceed.  I've had to disable MIME checking altogether to get files to upload as it breaks too frequently.  Can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/144686-issue-with-mediawiki-mime-checking/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.