Name
MimeType: represents a MIME datatype — JavaScript 1.1; not supported by IE: Object → MimeType
Synopsis
navigator.mimeTypes[i] navigator.mimeTypes["type"] navigator.mimeTypes.length
Properties
-
description A read-only string that provides a human-readable description (in English) of the data type described by the MimeType.
-
enabledPlugin A read-only reference to a Plugin object that represents the installed and enabled plug-in that handles the specified MIME type. If the MIME type is not handled by any plug-ins (for example, if it’s handled directly by the browser), the value of this property is
null. This property is alsonullwhen a plug-in exists but has been disabled.-
suffixes A read-only string that contains a comma-separated list of filename suffixes (not including the “.” character) that are commonly used with files of the specified MIME type. For example, the suffixes for the “text/html” MIME type are “html, htm”.
-
type A read-only string that specifies the name of the MIME type. This is a unique string such as “text/html” or “image/jpeg” that distinguishes the MIME type from all others. It describes the general type of data and the data format used. The value of the
typeproperty can also be used as an index to access the elements of thenavigator.mimeTypes[]array.
Description
The MimeType object represents a MIME type (i.e., a data format) supported by a web browser. The format may be supported directly by the browser, or through an external helper application or a plug-in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access