Handbuch:$wgTrustedMediaFormats
Bilder: $wgTrustedMediaFormats | |
---|---|
Liste der vertrauenswürdigen Medientypen und MIME-Typen. |
|
Eingeführt in Version: | 1.5.0 |
Entfernt in Version: | weiterhin vorhanden |
Erlaubte Werte: | nicht angegeben |
Standardwert: | (siehe unten) |
Andere Einstellungen: Alphabetisch | Nach Funktion |
Details
Liste der vertrauenswürdigen Medientypen und MIME-Typen. MIME types are maintained by the IANA (Internet Assigned Numbers Authority). You may wish to consult a list of common MIME types and their associated file extensions before trying to determine what to add to $wgTrustedMediaFormats. Use the MEDIATYPE_xxx constants to represent media types.
Files that do not match an entry on this list will have the content of the system message MediaWiki:Mediawarning displayed on the image description page. The default message is:
Warnung: Dieser Dateityp kann böswilligen Programmcode enthalten. Durch das Herunterladen und Öffnen der Datei kann dein Computer beschädigt werden.
Standardwerte
MediaWiki Version: | ≥ 1.10 |
$wgTrustedMediaFormats = [
MEDIATYPE_BITMAP, // alle Bitmap-Formate
MEDIATYPE_AUDIO, // alle Audio-Formate
MEDIATYPE_VIDEO, // alle Nur-Video-Formate
"image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
"application/pdf", // PDF-Dateien
# "application/x-shockwave-flash", //flash/shockwave movie
];
MediaWiki Versions: | 1.5 – 1.9 |
$wgTrustedMediaFormats= array(
MEDIATYPE_BITMAP, //all bitmap formats
MEDIATYPE_AUDIO, //all audio formats
MEDIATYPE_VIDEO, //all plain video formats
"image/svg", //svg (only needed if inline rendering of svg is not supported)
"application/pdf", //PDF files
#"application/x-shockwave-flash", //flash/shockwave movie
);