November Happy Hour will be moved to Thursday December 5th.

Interface IMimeTypeResolver

Resolves mappings from a filename to a mime type.

Namespace: EPiServer.Web
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public interface IMimeTypeResolver

Methods

GetMimeMapping(String)

Get the MIME type that should be used for the provided filename.

Declaration
string GetMimeMapping(string fileName)
Parameters
Type Name Description
System.String fileName

The name of the file for which a MIME type should be resolved.

Returns
Type Description
System.String

The MIME type to use for a file with the provided name

Extension Methods