Re: fileinfo returning wrong mime type for Excel files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > /usr/share/file/magic
> /usr/share/file/magic has lots of rules to know its type and its just
> matching it.

I know it has a lot of rules.  Grepping it for excel shows that there
are rules in it for those types of files as well.

> Maybe your file is quite strange . have you tried with other xls files?

Yes, I have; the result is the same for all.

> what does  "file /path/to/my/excel.xls"  say

$ file excel.xls
excel.xls: Microsoft Office Document

Interestingly...

$ file word.doc
word.doc: Microsoft Office Document

So apparently, to the file command, there is no distinction.  That
seems both odd and wrong to me.  But not nearly as wrong as fileinfo
reporting "application/msword" as the mime type of an excel document.

thnx,
Christoph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux