Manual:$wgMimeTypeFile/zh

From Linux Web Expert

Revision as of 00:48, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> MIME types</translate>: $wgMimeTypeFile
设置MimeAnalyzer.php 使用的MIME类型定义文件。
<translate> Introduced in version:</translate>1.5.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(相对于$IP 的路径)
<translate> Default value:</translate>'internal' (1.35+)
'includes/mime.types' (1.5-1.34)

细节

设置MIME类型定义文件,该文件将MIME类型映射到文件扩展名。

默认的MimeMap.php文件随MediaWiki一起分发。

示例:

$wgMimeTypeFile = "/etc/mime.types"; $wgMimeTypeFile = null; // 仅使用一组有限的内置默认值(MimeAnalyzer.php中定义

參見