Closed (fixed)
Project:
MimeDetect
Version:
5.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2008 at 08:38 UTC
Updated:
29 Apr 2009 at 22:40 UTC
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?
| Comment | File | Size | Author |
|---|---|---|---|
| mimedetect.jpg | 27.43 KB | kevin.osmond |
Comments
Comment #1
nnn commentedI 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.
Comment #2
fuquam commentedI 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.
Comment #3
drupal centric commentedAccording 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 ??
Comment #4
DanilaD commentedThanks, nnn. This worked for me.
Comment #5
fuquam commentedYou mean you could actually go to admin/settings/mimedetect? The settings page doens't exist for me. Just like Dickster said.
Comment #6
drewish commentedHumm. 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.
Comment #7
drewish commentedCould everyone please try the -dev release and see if that fixes the problem?
Comment #8
fuquam commentedI 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."
Comment #9
nuruddin-2 commentedthe -dev version fixed the problem. Thanks Drewish!
Comment #10
drewish commentedfuquam, are you able to see the admin setting page though?
Comment #11
drewish commentedi think this will be fixed by the new release. please re-open if that's not the case.
Comment #12
fuquam commentedI 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.