Do I need to install a PHP Fileinfo Extension?
-------------------
Mime type detection Browser & Extension
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.
----------------------------------------------------

"It is distributed with it's own magic library for use with the PHP FileInfo extension to make mime detection more consistent in different environments."

The link doesn't go anywhere. Page not found. >> http://drupal.org/project/php.net/fileinfo

Is there supposed to be a file info module here?

Comments

fuquam’s picture

Forgot to mention I'm running PHP 5.2.9. I have "extension=fileinfo.so" in my php.ini file.
Thanks.

drewish’s picture

Status: Active » Postponed (maintainer needs more info)

if you view phpinfo(); is it displaying the fileinfo extension? perhaps it's not actually being loaded by php in your webserver.

drewish’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

closed due to lack of feedback. feel free to re-open with more information.

MartinDeJong’s picture

i am getting this error 2.
Mime type detection Browser & Extension
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
How to solve this ( File command cant be found either)

weka’s picture

I am experiencing the same error. Not sure how to troubleshoot this.

What should I look for in the phpinfo() results? When I search for fileinfo the only thing I find is the class SplFileInfo under the SPL section.

PHP Version 5.2.9

weka’s picture

Status: Closed (fixed) » Active
M7jctC45’s picture

Go to admin/settings/mimedetect and enable unix file command

weka’s picture

Thank you for your reply Kay. I have done that, was just wondering if using fileinfo is the preferred method and I should try to make it available.

promes’s picture

I am running PHP 5.3.1.
In phpinfo() I find:
fileinfo
fileinfo support enabled
version 1.0.5-dev
But still mimedetect refuses to install with the standard error text.
Any help?

usera’s picture

I installed by compiling in 5.3.4 and it does show
1.0.5-dev enabled

However using the fileinfo produces no output and even set path in settings.php.
Because of this it cannot be enabled(not grayed out) and it produces no error when trying to enable.

manuel.adan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this as outdated, feel free to re-open if you're still looking for a solution and waiting for appropriate assistance.