Skip to main content
Level 1
Jul 16, 2020 2:46 PM UTC
Solved

Potentially unsafe file blocked (IMAGE/SVG+XML)

Hi all,

 

I'm trying to upload some SVG files to the design studio. I have done so with no issues in the past. But now, when I try to do so, I get the warning "Potentially unsafe file blocked (IMAGE/SVG+XML)". Does anyone know what I can do to upload these files?

 

Thank you!

 

EDIT: Solved, there were extra properties on the generated SVG that needed to be deleted.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Jul 16, 2020 8:16 PM UTC

Updating to mark as resolved. Per OP:

 


Solved, there were extra properties on the generated SVG that needed to be deleted.


 

18 replies

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Jul 16, 2020 8:16 PM UTC

Updating to mark as resolved. Per OP:

 


Solved, there were extra properties on the generated SVG that needed to be deleted.


 

Translate
Bob_Bottomley
Level 1
Aug 3, 2020 11:23 PM UTC

What extra properties did you have to remove?

If I remove enough so that Marketo doesn't reject it, then the browsers won't display it due to errors (having removed too much).

 

This is really annoying. There needs to be a way to disable this ridiculous error.

Translate
Bob_Bottomley
Level 1
Aug 9, 2020 3:08 PM UTC

I figured out how to make it work:

I had to remove the xlink namespace from the top to get Marketo to like it.

 

From:
<svg version="1.1" viewBox="0 0 356 263" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

to:

<svg version="1.1" viewBox="0 0 356 263" xmlns="http://www.w3.org/2000/svg">

 

Browsers would then give an error until I removed all the xlink references, such as changing:

<use xlink:href="#path-3"/>

 

to:

<use href="#path-3"/>

 

Translate
Wade_Sarchet
Level 2
Jul 29, 2020 3:14 PM UTC

What program and save settings did you use for the .svg? I am using Illustrator and have tried uploading to the design studio using different combinations of SVG Profiles, CSS Properties, and have excluded the additional options in the save as menu.

Translate
Dave_Roberts
Level 10
Feb 19, 2021 12:44 AM UTC

Hey Wade,

 

Check out the bit I posted above. There's a shot of the settings I use and walk-thru of the process that works for me. 

 

Let me know if that works on your end too?


Thanks,
Dave

Translate
TyrellC
Level 2
Nov 29, 2022 7:33 PM UTC

I want to provide a solution that was shared by my coworker Josh. 

  • Go to this link here: https://yoksel.github.io/url-encoder/
  • Paste your SVG Code in the Insert SVG Box.
  • In the Ready For CSS box, copy the URL within the background-image: url();
  • Example:

    "data&colon;image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='100' width='100'%3E%3Ccircle cx='50' cy='50' r='40' stroke='black' stroke-width='3' fill='red' /%3E Sorry, your browser does not support inline SVG. %3C/svg%3E "
  • Use that URL in place of the SVG URL that you were having issues with.

Hopefully this helps! 

Translate
Tyrell CurryMarketo Web Developer @ MERGE