Mime-type handling
| From: | Manuel Vacelet | Date: | Thu, 08 Dec 2005 11:31:52 +0000 |
| Subject: | Mime-type handling | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-227134@lists.php.net to get a copy of this message | ||
Hi all,
I'm facing a bad behaviour of 'file' command used by fileinfo PECL module
(recommanded for mime-type checking):
* Some Microsoft Excel documents are detected as Microsoft Word documents
* Some HTML files are just text/plain
* ...
I tested on multiple machines (with different version of file) and I
sometimes obtain a diffrent behaviour but never the one expected :/ I also
looked for the latest version of file but it seems that the file used to
detect the mime-type is out of date...
My questions are:
* If you already encounter this problem, how did you solve it ?
* Where can I find an up-to-date version of magic number list usable with
file for mime type checking ?
Thanks,
Regards,
Manuel