Re: Mime-type handling
| From: | Curt Zirzow | Date: | Fri, 09 Dec 2005 05:30:53 +0000 |
| Subject: | Re: Mime-type handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227172@lists.php.net to get a copy of this message | ||
On Thu, Dec 08, 2005 at 12:31:52PM +0100, Manuel Vacelet wrote:
> 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...
I'm not familiar to how fileinfo detects the contents, is the file
it is using a file like:
/usr/share/misc/magic
> ...
> * Where can I find an up-to-date version of magic number list usable with
> file for mime type checking ?
If the above is true, a updated version should be availble for the
OS you are using.
Curt.
--
cat .signature: No such file or directory