| MIME types: $wgMimeTypeFile | |
|---|---|
| Sets the MIME type definition file to be used by MimeAnalyzer.php. |
|
| Introduced in version: | 1.5.0 |
| Removed in version: | still in use |
| Allowed values: | (path relative to $IP) |
| Default value: | 'internal' (1.35+)'includes/mime.types' (1.5-1.34) |
| Other settings: Alphabetical | By function | |
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
- $wgMimeDetectorCommand
- $wgMimeInfoFile
- $wgXMLMimeTypes
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.