SOLVED

Potentially unsafe file blocked (IMAGE/SVG+XML)

Go to solution
brownstein
Level 1

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.

Tags (1)
2 ACCEPTED SOLUTIONS
SanfordWhiteman
Level 10 - Community Moderator

Updating to mark as resolved. Per OP:

 


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


 

View solution in original post

SanfordWhiteman
Level 10 - Community Moderator

You can set the file extension (and thus server MIME type) to .xml. This sidesteps the quite bizarre security check.

 

Then embed using an <object> and override the MIME type.

<object type="image/svg+xml" data="https://pages.example.com/rs/123-XOR-456/images/testsvg1.xml" style="min-height:200px;">
</object>

Works in all browsers.

View solution in original post

18 REPLIES 18