RE: Cannot upload SVG as a Resource?

Matt Kruse, modified 5 Years ago. New Member Posts: 14 Join Date: 11/6/19 Recent Posts
I would like Fragments to use SVG's instead of images like PNG, JPG.The Resource page won't let me upload SVG files. Is there a solution to this?
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
I would open a feature request for that. I think, svg should absolutely be supported.
As a workaround: How about just copying the svg into the html part of the fragment? Not as nice as adding it as a resource, just as a workaround.
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi ,You may need to add svg type in setting System Settings - > Page Fragments - > Fragments Thumbnails add .svg
Lee Jordan, modified 5 Years ago. Expert Posts: 449 Join Date: 5/26/15 Recent Posts
You can host them in your theme