creating custom MIME type in cq5/AEM

China☆狼群 提交于 2019-12-07 06:01:12

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!