Potentially unsafe file blocked (IMAGE/SVG+XML) | Community
Skip to main content
Level 1
July 16, 2020
Solved

Potentially unsafe file blocked (IMAGE/SVG+XML)

  • July 16, 2020
  • 3 replies
  • 17747 views

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.
Best answer by SanfordWhiteman

Updating to mark as resolved. Per OP:

 


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


 

3 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
July 16, 2020

Updating to mark as resolved. Per OP:

 


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


 

Bob_Bottomley
Level 1
August 3, 2020

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.

Bob_Bottomley
Level 1
August 9, 2020

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"/>

 

Wade_Sarchet
Level 2
July 29, 2020

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.

Dave_Roberts
Level 10
February 19, 2021

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

TyrellC
Level 2
November 29, 2022

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! 

Tyrell CurryMarketo Web Developer @ MERGE