|
|
|
| The following comment has been added to this issue: |
[ Permlink ] |
|
Author: Vlad Tudoran
Date: 06/03/07 18:02
Comment:
For xml Word/Excel 2003 files, the mimetype can be determined by inspecting the xml headers (the first lines, that start with <? ). If you find:
<?mso-application progid="Excel.Sheet"?>
the mimetype is "application/vnd.ms-excel"
For:
<?mso-application progid="Word.Document"?>
the mimetype is "application/msword"
For Office 2007 and the new Open XML file formats, the mimetypes are here http://blogs.msdn.com/dmahugh/archive/2006/08/08/692600.aspx
|
|
NXMimetype
The excel detector for jmimemagic has been successfully implemented using jakarta poi project
- do the same for word and powerpoint (imply to find the correct poi version)
- opendocument : make a detector to check (after unzip) for real mimetype instead on relying on an implementation detail (mimetype file zipped at position 38)
|
|
|
|
![]() |
|
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets