Try our conversational search powered by Generative AI!

EPiServer 9.7 and SVG files


I've created a new Alloy project.

episerver.cms 9.6.1
episerver.cms.ui 9.3.8

And created a new class for SVG files:

[ContentType(GUID = "8CDEA0CB-EB49-46A1-B4D1-FA88F93908A4")]
[MediaDescriptor(ExtensionString = "svg")]
public class VectorImage : ImageData
    public override Blob Thumbnail
        get { return BinaryData; }

I can see the thumbnail, download the file, etc.

Then I've upgraded EpiServer nuget packages to the latest version and noticed that EPiServer doesn't properly handle SVG files anymore:

- Thumbnail is missing

- When I download and open the SVG file in notepad, I can see that it begins with: ‰PNG instead of


Apr 06, 2016 22:35

This is a bug since 9.7+ but is supposed to be fixed with the upcoming 9.8 AFAIK.


Apr 08, 2016 10:28

I can now confirm that this bug is fixed with EPiServer 9.8.0.


Edited, Apr 12, 2016 15:17
<p>Yes, works fine in 9.8.0.</p> <p>Thanks for the update :)</p>
Apr 12, 2016 15:20
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.