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 |
Jump to:
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
Forgot to mention I'm running PHP 5.2.9. I have "extension=fileinfo.so" in my php.ini file.
Thanks.
#2
if you view phpinfo(); is it displaying the fileinfo extension? perhaps it's not actually being loaded by php in your webserver.
#3
closed due to lack of feedback. feel free to re-open with more information.
#4
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
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
#7
Go to admin/settings/mimedetect and enable unix file command
#8
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.