Posted by kevin.osmond on September 15, 2008 at 8:38am
Jump to:
| Project: | MimeDetect |
| Version: | 5.x-1.1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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?
| Attachment | Size |
|---|---|
| mimedetect.jpg | 27.43 KB |
Comments
#1
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
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
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
Thanks, nnn. This worked for me.
#5
You mean you could actually go to admin/settings/mimedetect? The settings page doens't exist for me. Just like Dickster said.
#6
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
Could everyone please try the -dev release and see if that fixes the problem?
#8
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
the -dev version fixed the problem. Thanks Drewish!
#10
fuquam, are you able to see the admin setting page though?
#11
i think this will be fixed by the new release. please re-open if that's not the case.
#12
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
Automatically closed -- issue fixed for 2 weeks with no activity.