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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.