메뉴얼:$wgUploadDirectory

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

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎русский • ‎українська • ‎العربية • ‎فارسی • ‎中文 • ‎日本語 • ‎한국어
Uploads: $wgUploadDirectory
The file system path of the upload directory.
이 변수가 소개된 버전:pre 1.1.0
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(절대경로)
기본값:"{$IP }/images"
"{$IP }/upload" (1.8.0 이전)
(Note: The default value of this variable depends on other variables, such as the values set in Setup.php , after LocalSettings.php is executed)

설명

The file system path of the folder where uploaded files will be stored.

This location needs to be writable by the web server. See Manual:Configuring file uploads#Check directory security.

By default, uploaded files are actually stored in subfolders of $wgUploadDirectory. See Manual:Configuring file uploads#Upload directory for information, and how to disable this behavior.

There are other variables which are defined relative to this one. If you redefine this in your LocalSettings.php then all dependent variables including $wgUploadPath will need redefining also. If both these settings are not coherent the files will be uploaded to different folder ($wgUploadDirectory) than from where MediaWiki will try to retrieve it for viewing ($wgUploadPath)!

같이 보기