Manual:$wgTrustedMediaFormats/ko

From Linux Web Expert

<translate> Images</translate>: $wgTrustedMediaFormats
List of trusted media-types and MIME types.
<translate> Introduced in version:</translate>1.5.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate><translate> Unspecified</translate>
<translate> Default value:</translate>(아래 참조)

설명

List of trusted media-types and MIME types. 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 or have an unknown media type and which are not allowed for inline display or trusted by a file-handling extension will have the content of the system message MediaWiki:Mediawarning displayed on the image description page. 기본 메세지:

Warning: This file type may contain malicious code.
By executing it, your system may be compromised.

기본값

미디어위키 버전:
<translate> ≥</translate> 1.10
$wgTrustedMediaFormats = [
	MEDIATYPE_BITMAP, // 모든 비트맵 포맷
	MEDIATYPE_AUDIO, // 모든 오디오 포맷
	MEDIATYPE_VIDEO, // all plain video formats
	"image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
	"application/pdf", // PDF 파일
	# "application/x-shockwave-flash", //플래쉬/쇼크웨이브 무비
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.9</tvar> is unsupported version</translate>">
1.5 – 1.9
<translate> MediaWiki versions:</translate>
$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
);