Skip to main content

Posts

Showing posts from October, 2014

SVG Files and Sitecore

Sitecore by default does not support the SVG image types. You'd have to incorporate the following in your web.config to be able to make SC serve the SVG as an image instead of a file for download.        <mediaType name="SVG image" extensions="svg">           <mimeType>image/svg+xml</mimeType>           <forceDownload>false</forceDownload>           <sharedTemplate>system/media/unversioned/image</sharedTemplate>           <versionedTemplate>system/media/versioned/image</versionedTemplate>           <mediaValidator type="Sitecore.Resources.Media.ImageValidator"/>           <thumbnails>             <generator type="Sitecore.Resources.Media.ImageThumbnailGenerator, Sitecore.Kernel">               <extension>png</extension>             </generator>             <width>150</width>             <height>150</height>