Issue (View Online)

Key: NXP-685
Issue Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Laurent Godard
Reporter: Laurent Godard
Original Estimate: 1 day
Remaining Estimate: 1 day

Operations

View all
View comments
View history
Use detectors for complex mimetype sniffing 
Updated: 06/03/07 18:02   Created: 01/03/07 11:00  

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

Project: Nuxeo Enterprise Platform 5

 Description   
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)

This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to