I've created a new Alloy project.
episerver.cms 9.6.1episerver.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
episerver.cms 9.7.3.0episerver.ui 9.4.3.0
This is a bug since 9.7+ but is supposed to be fixed with the upcoming 9.8 AFAIK.
Regards,Magnus
I can now confirm that this bug is fixed with EPiServer 9.8.0.
Regrads,Magnus
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:
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
episerver.cms 9.7.3.0
episerver.ui 9.4.3.0