Manual:$wgMimeDetectorCommand

From MediaWiki.org

Jump to: navigation, search
MIME types: $wgMimeDetectorCommand
Sets an external mime detector program.
Introduced in version: 1.5.0
Removed in version: still in use
Allowed Values:
Default Value: NULL

Other settings: Alphabetical | By Function


[edit] Details

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 not set or NULL, the PHP function mime_content_type() will be used if available (PHP >= 4.3.0).

See Manual:Mime type detection for details. See also Manual:Configuring file uploads.

Example (Linux):

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