MimeTypes

Wisej.Core.MimeTypes

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Maps document extensions to content MIME types.

public class MimeTypes

Methods

Returns the MIME mapping for the specified file name.

ParameterTypeDescription

fileName

The file name that is used to determine the MIME type.

Returns: String.

Returns if the file extension corresponds to a known mime type.

ParameterTypeDescription

extension

The file extension to check.

Returns: Boolean.

Adds or changes the mime type for the specified file extension.

ParameterTypeDescription

extension

The file extension to add to the mime type list.

mimeType

The mime type to add to the mime type list.

Last updated