Manual:$wgMimeTypeFile

From Linux Web Expert

Revision as of 17:38, 3 June 2021 by imported>Shirayuki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> MIME types</translate>: $wgMimeTypeFile
Sets the MIME type definition file to be used by MimeAnalyzer.php .
<translate> Introduced in version:</translate>1.5.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(path relative to $IP )
<translate> Default value:</translate>'internal' (1.35+)
'includes/mime.types' (1.5-1.34)

Details

Sets the MIME type definition file, which maps MIME types to file extensions.

A default MimeMap.php file is distributed with MediaWiki.

Examples:

$wgMimeTypeFile = "/etc/mime.types"; $wgMimeTypeFile = null; // use a limited set of built-in defaults only (defined in MimeAnalyzer.php)

See also