The mechanism to create a Nuxeo document with an import is tight to the plugins extension point from the
According to the MIME type of the file you try to import, a specific plugin will be called. And most of the time, it's the
DefaultFileImporter plugin that will be used.
So, to create a document of your own type, you have to set the
docType attribute when overwriting the default contribution:
<require>org.nuxeo.ecm.platform.filemanager.service.FileManagerService.Plugins</require> <extension target="org.nuxeo.ecm.platform.filemanager.service.FileManagerService" point="plugins"> <plugin name="DefaultFileImporter" merge="true" docType="MyCustomFileType" /> </extension>
This mechanism is also valid with any document type inherited from File, as Picture, Audio or Video.
- DAM Configuration video on Nuxeo University: Learn how to type a file as Picture according to its file extension.