File excel not recognized



Hi,

When I upload an excel file, PHP does not recognize the type of this
file:

echo $HTTP_POST_FILES['file']['type'] ;

returns: application/octet-stream
Whereas a word file returns: application/msword

Do you know if there is anyway to get the type of a excel file ?

Thanks,
Vincent.

.



Relevant Pages

  • Re: File excel not recognized
    ... When I upload an excel file, PHP does not recognize the type of this ... Whereas a word file returns: ... This mime type is however not checked on the PHP side and therefore don't take its value for granted. ... And the value application/octet-stream just means it is a binary file, which is correct in this case, but little informative. ...
    (comp.lang.php)
  • Re: File excel not recognized
    ... When I upload an excel file, PHP does not recognize the type of this ... Whereas a word file returns: ... This mime type is however not checked on the PHP side and therefore don't take its value for granted. ... And the value application/octet-stream just means it is a binary file, which is correct in this case, but little informative. ...
    (comp.lang.php)
  • Re: File excel not recognized
    ... When I upload an excel file, PHP does not recognize the type of this ... Whereas a word file returns: ... And the value application/octet-stream just means it is a binary file, ... If you upload a MS Word document to my Linux server, ...
    (comp.lang.php)
  • Re: File excel not recognized
    ... When I upload an excel file, PHP does not recognize the type of this ... This mime type is however not checked on the PHP side and therefore don't take its value for granted. ... And the value application/octet-stream just means it is a binary file, which is correct in this case, but little informative. ...
    (comp.lang.php)
  • Re: Docs2Go v9
    ... manually with Filez and deleting as appropriate. ... Formatting is retained, which is nice, and one Excel file ... that would never load under previous versions now does. ... A Word file that has graphics embedded in it ...
    (comp.sys.palmtops.pilot)