Learn how to update your SVG file to upload into Slate.
What's in this article:
What Error You Received
When you tried to upload your SVG file, we found one or more elements or attributes that aren’t allowed for security reasons. To protect you and your team, we check every SVG file for anything that could cause problems — like hidden scripts or risky behaviour — and block uploads that include them.
What We Check (and Why)
SVGs are a type of code that describes vector images. That makes them flexible and powerful — but it also means they can include things that go beyond just visuals.
We block anything that could:
- Run scripts or actions when the file is opened
- Link to content from outside sources
- Modify the page or app in unexpected ways
This includes things like:
- JavaScript code (for example: onload, onclick, etc.)
- <script> tags
- Certain types of links
NOTE: If your file includes any of these, we’ll stop the upload and show you what needs to be removed.
What’s Allowed?
We support all the essentials for clean, safe SVGs:
-
Shapes like rectangles, circles, paths, and polygons
- Solid colors, gradients, strokes, and fills
- Text and fonts
- Grouping and basic transformations (like rotate or scale)
How to Fix Your SVG
Here are some tips to clean up your SVG and try again:
-
Remove any code or metadata you don’t recognize — especially if the file was edited manually or exported from a design tool with advanced options.
- Avoid using any event actions, like onclick or onload.
- Don’t link to external files or scripts, even if they seem harmless.
- You can open the SVG in a text editor (like VS Code, Notepad++, or even TextEdit) to inspect the contents and delete any suspicious parts.
- If you’re unsure, open the SVG in a text editor and look for anything suspicious — or copy-paste the contents into a tool like https://svgcleaner.com to help clean it up.
- Try re-exporting your design using a “clean” or “simplified” SVG export option in your design tool (like Illustrator, Figma, or Sketch). This often removes any unnecessary or potentially unsafe code automatically.
If you’re still having trouble, feel free to support@slateteams.com and share the file — we’re happy to help!