问题
I need to add support for a proprietary 3D format in cq5/AEM. Despite having absolutely no experience with this, I managed to generate a few working components to visualize the assets.
But now, I need to create custom media handler to generate renditions and thumbnails from the model. The problem is, media handlers can only work on assets of specific MIME types, and cq5 do not associate a type to my assets. Thus, I can not have a media handler called on them.
Is there any way to customize how cq5 associate MIME types to an asset, or I is there another way to circumvent the problem?
回答1:
Ok, I found what I needed. You can link MIME type to extensions by going to the OSGI console at http://localhost:4502/system/console/configMgr
and to the Apache Sling MIME type Service
configuration. There, you can add new MIME / extension link:
MIME extensions...
model/collada+xml dae
来源:https://stackoverflow.com/questions/19659418/creating-custom-mime-type-in-cq5-aem