Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:$wgMimeDetectorCommand

From mediawiki.org
Translate this page
Languages:
MIME types: $wgMimeDetectorCommand
Sets an external MIME detector program.
Introduced in version:1.5.0
Removed in version:Still in use
Allowed values:Unspecified
Default value:null
Other settings:Alphabetical |By function

Details

[edit]

Sets an external MIME detector program.The command must print only the MIME type to standard output.The name of the file to process will be appended to the command given here.

If this setting is not set, the PHPfileinfo extension will be used, or if that is unavailable, the PHP functionmime_content_type() will be used.

It is important to note that MediaWiki itself performs a set of MIME detection tests itself, and only if those are unsuccessful is the MIME detector invoked.SeeManual:MIME type detection for more information about this whole process.See alsoManual:Configuring file uploads.

Example (Linux):

$wgMimeDetectorCommand="file --brief --mime";

or shortly,

$wgMimeDetectorCommand="file -bi";
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:$wgMimeDetectorCommand&oldid=6067243"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp