手册:$wgUploadDirectory
服务器URL及文件路徑: $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使用的用户可写。 参见Manual:Configuring file uploads#Check directory security.
默认下,上传的文件实际存储在$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
)!