SOLVED: Import template don't import (donwload) svg image file

Browser: Firefox 122.0b2
OS: macOS / Windows / Linux / etc.

Hi,

When I import the template from site A to site B (by .json file). Everything is fine, except the SVG Elements. These SVG Elements are corrupted because the svg image files were not imported (downloaded) from site A.

Note: I setting allow upload svg and upload .svg successful.

Please help. Thanks :heart:

Hi,
Thanks so much for your report!

This is not a bug, but a deliberate decision. SVGs are removed during import for security reasons because, to put it simply, they are just code that could also be harmful.

Since anyone who has access to the builder can also use and import templates, this would invalidate the “SVG uploads” setting (which is there for security reasons, too).

You are welcome to submit this as a suggestion on the Idea board so that we can come up with a solution, if needed.

Best regards,
timmse

1 Like

Hi @timmse, thanks for your reply.
How about I import by remote? My sites are A and B. I remote import template from site A to site B.
svg can be imported and downloaded, but image (.jpg) (in Carousel Element) cannot?

If I import from Community Remote Template, everything ok. The images will be download.

Note:

  • I setting allow upload svg
  • I checked “Import images”

Hi @timmse
Do I need open a new Topic for this? Please let’s me know.

Thanks :heart:

No, all good. You’re right that the import behaves differently, so we definitely need to look into that. I have already created an internal task for this.

Thanks for your reply :heart:.
Hope this will be fix soon.
Thanks :heart:

We fixed this issue in Bricks 1.12.2, now available as a one-click update in your WordPress Dashboard.

Changelog: Bricks 1.12.2 Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse