SVG file not getting imported in AEM DAM | Community
Skip to main content
rajeshs28932860
Level 3
September 12, 2018

SVG file not getting imported in AEM DAM

  • September 12, 2018
  • 2 replies
  • 7205 views

We have DAM Asset upload restriction configuration turned on in OSGI to allow specfic file types to DAM.

We have added "image/svg+xml " in the list to allow SVG

however still ASSET upload fails with the below log,

  1. com.day.cq.dam.core.impl.servlet.CreateAssetServlet Unsupported Media Type - RIC-model-16x9.svg:image/svg+xml

when the restriction is removed and all filetypes are allowed, this gets added in the DAM.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Adobe Employee
September 12, 2018

Check the XML, and look for <dc:format>  is it image/svg+xml ? or a different format?

You can also add a rule using wildcards to cover if the mime type has a prefix to it, like:   .*image/svg+xml

rajeshs28932860
Level 3
September 17, 2018

unfortunately even after using wildcards like image/* it doesnt seem to work.

rajeshs28932860
Level 3
September 18, 2018

Try to enter it exactly like this (including the dot at the beginning):

.*image/svg+xml


it doesnt work.

looks like a Bug raised with Adobe.

KotiSyamala
Level 5
December 20, 2019

Hay @rajeshs28932860,

The issue is with your regEx in the OSGI Configuration it doesn't matches with the mime type. Change your regEx to image/svg\+xml it should work, Let me know if you are facing any issue.

Thanks,

Koti Syamala

Level 2
March 7, 2022

@kotisyamala I have added this regEx but it is not working