Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

SVG file not getting imported in AEM DAM

Avatar

Avatar
Validate 1
Level 2
rajeshs28932860
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
rajeshs28932860
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
rajeshs28932860
Level 2

12-09-2018

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.

Replies

Avatar

Avatar
Give Back 5
Employee
shunnar
Employee

Likes

12 likes

Total Posts

46 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile

Avatar
Give Back 5
Employee
shunnar
Employee

Likes

12 likes

Total Posts

46 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile
shunnar
Employee

12-09-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

Avatar

Avatar
Validate 1
Level 2
rajeshs28932860
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
rajeshs28932860
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
rajeshs28932860
Level 2

17-09-2018

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

Avatar

Avatar
Validate 1
Level 2
rajeshs28932860
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
rajeshs28932860
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
rajeshs28932860
Level 2

17-09-2018

I tried debugging the uploaded asset with DAM Mime type service and it is getting detected as "image/svg+xml"

com.day.cq.dam.core.impl.mimeType.DamMimeTypeServiceImpl DAM Mime Type Service detected mimeType for test3.svg as: image/svg+xml

however when I allow the config in DAM asset restriction configuration it doesn't upload and gives error message, it uploads only when all MIME type is selected.

Avatar

Avatar
Give Back 5
Employee
shunnar
Employee

Likes

12 likes

Total Posts

46 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile

Avatar
Give Back 5
Employee
shunnar
Employee

Likes

12 likes

Total Posts

46 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile
shunnar
Employee

17-09-2018

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

.*image/svg+xml

Avatar

Avatar
Validate 1
Level 2
rajeshs28932860
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
rajeshs28932860
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
rajeshs28932860
Level 2

17-09-2018

it doesnt work.

looks like a Bug raised with Adobe.

Avatar

Avatar
Validate 1
Level 2
kotisyamala
Level 2

Like

1 like

Total Posts

20 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile

Avatar
Validate 1
Level 2
kotisyamala
Level 2

Like

1 like

Total Posts

20 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile
kotisyamala
Level 2

19-12-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