手册:$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 50% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎Türkçe • ‎español • ‎français • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎українська • ‎中文 • ‎日本語 • ‎한국어
上传: $wgUploadDirectory
上传目录的文件系统路径。
引进版本:pre 1.1.0
移除版本:仍在使用
允许的值:(绝对路径)
默认值:"{$IP }/images" (1.8+)
"{$IP }/upload" (pre 1.1.0 - 1.7)
(Note: The default value of this variable depends on other variables, such as the values set in Setup.php , after LocalSettings.php is executed)

详情

存储上传文件的文件系统路径。

If this variable is changed, you may need to update $wgUploadPath accordingly.

目标文件夹需要对web server使用的用户可写。

默认下,上传的文件实际存储在$wgUploadDirectory的子文件夹中。

参见Manual:Configuring file uploads#Upload directory 获取更多信息,包括如何禁用此行为。

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)!

See also