Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Interface IMimeTypeResolver

Resolves mappings from a filename to a mime type.

Namespace: EPiServer.Web
Assembly: EPiServer.Framework.dll
Version: 11.20.7
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