<p>Half-bug, half side-effect/undesired behavior for SVG sanitization that got added in <a href="https://craftcms.com/changelog#2-6-2982" rel="nofollow noreferrer">Craft 2.6.2982</a> for SVGs that use embedded data.</p>

<p>The next release of Craft (post 2.6.2983) adds a <code>sanitizeSvgUploads</code> config setting (<code>true</code> by default) that you will be able to set to false to disable SVG sanitization.</p>

CC BY-SA 3.0
2017-07-23T15:54:05.627Z
Nice to see it fixed so quickly
zedjay72
CC BY-SA 3.0
2017-06-21T22:06:22.133Z
2017-06-21T22:06:22.133Z
Brad Bell
<p>Running 2.6.2983 on OS Sierra.</p>

<p>I'm noticing that some of my SVG files when uploading are going from 50kb to 1kb and then appear completely blank when trying to view them. Does anyone have a clue why this would be happening?</p>

<p>Thanks,</p>

CC BY-SA 3.0
2017-06-21T21:47:03.973Z
This sounds like a bug. Please email support@craftcms.com for assistance.
Lindsey D
<assets><svg>
Odd behaviour when uploading .svg Assets
# Odd behaviour when uploading .svg Assets

(Asked by: username_0 on 2017-06-21)

Running 2.6.2983 on OS Sierra.

I'm noticing that some of my SVG files when uploading are going from 50kb to 1kb and then appear completely blank when trying to view them. Does anyone have a clue why this would be happening?

Thanks,

**Tags:** assets, svg

> **Comments:**
> **username_1**: This sounds like a bug. Please email support@craftcms.com for assistance.  

---

## 1 answers

### Answer by username_2 on 2017-06-21. Score: 4 | Accepted answer

Half-bug, half side-effect/undesired behavior for SVG sanitization that got added in [Craft 2.6.2982](https://craftcms.com/changelog#2-6-2982) for SVGs that use embedded data.

The next release of Craft (post 2.6.2983) adds a `sanitizeSvgUploads` config setting (`true` by default) that you will be able to set to false to disable SVG sanitization.

> **Comments:**
> **username_0**: Nice to see it fixed so quickly  

---

