MimeType

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The MimeType interface provides contains information about a MIME type associated with a particular plugin. Navigator.mimeTypes returns an array of this object.

Properties

MimeType.type

Returns the MIME type of the associated plugin.

MimeType.description

Returns a description of the associated plugin or an empty string if there is none.

MimeType.suffixes

A string containing valid file extensions for the data displayed by the plugin, or an empty string if an extension is not valid for the particular module. For example, a browser's content decryption module may appear in the plugin list but support more file extensions than can be anticipated. It might therefore return an empty string.

MimeType.enabledPlugin

Returns an instance of Plugin containing information about the plugin itself.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
MimeType
1
12
1
11
≤12.1
1
1
18
No
≤12.1
1-8
1.0
description
1
12
1
11
≤12.1
1
1
18
No
≤12.1
1-8
1.0
enabledPlugin
1
12
1
11
≤12.1
1
1
18
No
≤12.1
1-8
1.0
suffixes
1
12
1
11
≤12.1
1
1
18
No
≤12.1
1-8
1.0
type
1
12
1
11
≤12.1
1
1
18
No
≤12.1
1-8
1.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MimeType