Re: fileinfo returning wrong mime type for Excel files

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

 



> Have you tried using 'file -i' from the command line: after all you are looking
> for a MIME type with your fileinfo...
> Having said that, with file -i on my system, Word documents are
> 'application/msword' and Excel files are 'application/octet-stream'

$ file -i excel.xls
excel.xls: application/msword

The xls file I am using was generated with Excel (of Office 2007) for
the Mac.  So either you have a different magic file (assuming that's
what the file command uses) than I do or different versions of excel
contain different information.

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