Manual:$wgTrustedMediaFormats

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Images: $wgTrustedMediaFormats
List of trusted media-types and MIME types.
Introduced in version: 1.5.0
Removed in version: still in use
Allowed values:
Default value: (see below)
Other settings: Alphabetical | By function

Details[edit]

List of trusted media-types and MIME types. 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:

Warning: This file type may contain malicious code.

By executing it, your system may be compromised.

Default value[edit]

MediaWiki version: 1.5
$wgTrustedMediaFormats = array(
	MEDIATYPE_BITMAP, // all bitmap formats
	MEDIATYPE_AUDIO, // all audio formats
	MEDIATYPE_VIDEO, // all plain video formats
	"image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
	"application/pdf", // PDF files
	#"application/x-shockwave-flash", // flash/shockwave movie
);