PHP Fileinfo Extension

fuquam - March 24, 2009 - 21:00
Project:MimeDetect
Version:5.x-1.1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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?

#1

fuquam - March 24, 2009 - 21:11

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

#2

drewish - March 24, 2009 - 23:24
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.

#3

drewish - April 15, 2009 - 18:58
Status:postponed (maintainer needs more info)» closed

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

#4

MartinDeJong - June 10, 2009 - 10:38

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)

#5

Weka - September 22, 2009 - 19:03

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

#6

Weka - September 22, 2009 - 19:04
Status:closed» active

#7

M7jctC45 - September 24, 2009 - 18:53

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

#8

Weka - September 25, 2009 - 01:40

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.

 
 

Drupal is a registered trademark of Dries Buytaert.