mimeMap Element for staticContent [IIS Settings Schema]

Note

For more information about the mimeMap element, see the following topic on the Microsoft IIS.net Web site: Adding Static Content MIME Mappings <mimeMap>.

Specifies a list of the file name extensions for MIME mappings.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

fileExtension

Required string attribute.

Specifies a unique file name extension for a MIME type.

See the Default Configuration section later in this topic for the complete list of default values.

mimeType

Required string attribute.

Specifies the type of file and the application that uses this kind of file name extension.

See the Default Configuration section later in this topic for the complete list of default values.

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

staticContent

Configures static file request handler settings.

Remarks

For more information about the mimeMap element, see the following topic on the Microsoft IIS.net Web site: Adding Static Content MIME Mappings <mimeMap>.

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0