adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
742 stars 750 forks source link

[Image 2.1.0] - SVG support mime type issue for uploaded assets #271

Closed angelinekwan closed 6 years ago

angelinekwan commented 6 years ago

Bug Report

Current Behavior If the SVG existed in the DAM, unable to drag and drop to the Image component or drag via the properties dialog. Nothing happens.

Expected behavior/code User should be able to drag existing SVG in the DAM to the component

Environment

Possible Solution Add mimeType: image/svg

bpauli commented 6 years ago

@angelinekwan In order to get the drag'n drop to work you have to add the svg mime type to the component mapping of the content policy.

Please have also a look to our We.Retail example code at [1]

Can you please confirm that this fixes your issue? Thanks! [1] https://github.com/Adobe-Marketing-Cloud/aem-sample-we-retail/blob/master/ui.content/src/main/content/jcr_root/conf/we-retail/settings/wcm/policies/.content.xml#L24

angelinekwan commented 6 years ago

@bpauli Your suggestion will enable dragging image directly to the Layout Container. The issue I reported is related with the version 2.1.0 updates for the Image Component. On the 2.1.0 update, image/svg+xml was added to the mimeTypes but that doesn't support if the SVG existed in the DAM. Only works if upload via the Property Dialog. Thanks

bpauli commented 6 years ago

@angelinekwan Thank you! Now I understand the problem :-).

This is a known issue which will be fixed with the next servicepack for AEM 6.4 (SP2). The release of this servicepack is scheduled for end of September.

(NPR-24467)

jckautzmann commented 6 years ago

Please note that the issue should be fixed in: CQ 6.4 + SP1 + FP-24267 + Core Components 2.1.0