手册:$wgHashedSharedUploadDirectory

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

Other languages:
English • ‎español • ‎français • ‎magyar • ‎polski • ‎فارسی • ‎中文 • ‎日本語
共享上传: $wgHashedSharedUploadDirectory
是否对共享的上传目录进行哈希运算。
引进版本:1.3.8
移除版本:仍在使用
允许的值:(布尔值)
默认值:true
其他设置: 按首字母排序 | 按功能排序

细节

If you operate multiple wikis, you can define a shared upload path using $wgSharedUploadPath . If $wgUseSharedUploads is set, the wiki will look in the shared repository if no file of the given name is found in the local repository (for [[Image:..]], [[Media:..]] links).

If true, new subdirectory is created in /images folder (e.g. /images/a/ab/foo.jpg) for each file upload. If false, all images are uploaded in /images folder itself, see also 手册:$wgHashedUploadDirectory .

Set this setting to false especially if you have a set of files that need to be accessible by all wikis, and you do not want to use the hash (path/a/aa/) directory layout.

Setting this to true is equivalent to setting the hashLevels property in $wgForeignFileRepos to 2.

参见