Warning Status: Mime type detection

kevin.osmond - September 15, 2008 - 08:38
Project:MimeDetect
Version:5.x-1.1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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?

AttachmentSize
mimedetect.jpg27.43 KB

#1

nnn - September 29, 2008 - 04:00

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.

#2

fuquam - March 26, 2009 - 18:19

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.

#3

Dickster - April 3, 2009 - 10:00

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 ??

#4

DanilaD - April 3, 2009 - 16:10

Thanks, nnn. This worked for me.

#5

fuquam - April 3, 2009 - 16:21

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

#6

drewish - April 3, 2009 - 18:17
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.

#7

drewish - April 3, 2009 - 18:39

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

#8

fuquam - April 6, 2009 - 16:35

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."

#9

nuruddin - April 9, 2009 - 04:49

the -dev version fixed the problem. Thanks Drewish!

#10

drewish - April 15, 2009 - 18:03

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

#11

drewish - April 15, 2009 - 19:30
Status:active» fixed

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

#12

fuquam - April 15, 2009 - 22:32

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.

#13

System Message - April 29, 2009 - 22:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.