cancel
Showing results for 
Search instead for 
Did you mean: 

What can I do to extend MIME type detection by file content?

Edgar_
Confirmed Champ
Confirmed Champ

As far as I can see there is no purpose Nuxeo extension. Am I now forced to change Nuxeo source (nuxeo-platform-mimetype-core)? What is your recommended approach in this case?

Thanks

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

No at the moment there is no way to extend the JMimeMagic Detectors using the Nuxeo extension point mechanism. We would have to dynamically create the magic.xml file before using JMimeMagic, and it's not currently done.

View answer in original post

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

What do you want to change exactly?

Edgar_
Confirmed Champ
Confirmed Champ

Want to add an additional detector for an unsupported Microsoft Office file, something like PptMimetypeSniffer.java etc.., which means that I have to extend JMimeMagic's magic.xml file (lines

Florent_Guillau
World-Class Innovator
World-Class Innovator

No at the moment there is no way to extend the JMimeMagic Detectors using the Nuxeo extension point mechanism. We would have to dynamically create the magic.xml file before using JMimeMagic, and it's not currently done.