Manual:$wgMimeDetectorCommand

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgMimeDetectorCommand and the translation is 25% complete.

Other languages:
English • ‎español • ‎français • ‎日本語 • ‎polski • ‎中文
MIME types: $wgMimeDetectorCommand
Sets an external MIME detector program.
Introducido en la versión: 1.5.0
Eliminado en la versión: aún se usa
Valores permitidos:
Valor predeterminado: null

Otros configuración: Alfabéticamente | Por Función

Detalles

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 PHP fileinfo extension will be used, or if that is unavailable, the PHP function mime_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. See Manual:MIME type detectionManual:MIME type detection for more information about this whole process. Véase también Manual:Configuring file uploadsManual:Configuring file uploads.

Ejemplo (Linux):

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

or shortly,

$wgMimeDetectorCommand = "file -bi";