MimeDetect is using the browser supplied mime type or file extension lookups. It is strongly recommended that you install and configure the PHP Fileinfo Extension or the UNIX 'file' command to provide more accurate severside mime type detection.

I get this warning report in my Status Report (admin/logs/status) which results filefield in my content type isnt working. Anybody know why?

CommentFileSizeAuthor
mimedetect.jpg27.43 KBkevin.osmond

Comments

nnn’s picture

I saw this message a while ago. It turned out that I need to visit the mime detect setting page (admin->setting->Mime type detection), and set the configuration there. Then no more this message. Hope this help.

fuquam’s picture

I have the same message as Kevin. However I have no way of going to the mime detect settings page. It doesn't show up in my modules list so I have no way of enabling/disabling or setting the module's permissions. It was enabled simply by uploading it to my modules directory. It doesn't show up in the admin->settings list either.

I have the PHP Fileinfo Extension enabled. I don't know how it needs to be configured for this module to work properly.

drupal centric’s picture

According to the code in the module it should have it's own settings page:

function mimedetect_menu() {
$items = array();

// The admin settings form.
$items['admin/settings/mimedetect'] = array(
'title' => 'Mime type detection',
'description' => 'Control how the mime type of uploaded files will be determined.',
'page callback' => 'drupal_get_form',
'page arguments' => array('mimedetect_settings'),
'access arguments' => array('administer site configuration'),
);

return $items;
}

It's not showing on my Drupal 5.16 and MimeDetect 5.1.1 install though ??

DanilaD’s picture

Thanks, nnn. This worked for me.

fuquam’s picture

You mean you could actually go to admin/settings/mimedetect? The settings page doens't exist for me. Just like Dickster said.

drewish’s picture

Version: 5.x-1.0 » 5.x-1.1

Humm. I wonder if the 5.x release was accidentally tagged on the 6.x branch... I can confirm that using the 1.1 release I didn't see the settings for but updating to the -dev release to start to look at a patch I found that the page appeared.

drewish’s picture

Could everyone please try the -dev release and see if that fixes the problem?

fuquam’s picture

I updated to the dev version but admin/settings/mimedetect still doesn't work. Also the message is still there "MimeDetect is using the browser supplied mime type or file extension lookups. It is strongly recommended that you install and configure the PHP Fileinfo Extension or the UNIX 'file' command to provide more accurate severside mime type detection."

nuruddin-2’s picture

the -dev version fixed the problem. Thanks Drewish!

drewish’s picture

fuquam, are you able to see the admin setting page though?

drewish’s picture

Status: Active » Fixed

i think this will be fixed by the new release. please re-open if that's not the case.

fuquam’s picture

I uninstalled it and did a fresh install of the dev version. Now at admin/settings/mimedetect I get the admin settings page.
Thanks.

------------------------
Use UNIX 'file' command to detect mime type?
The UNIX 'file' command will be used for mime detection only if the PHP Fileinfo extension is not installed or fails to load.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.