Manual:$wgUploadPath/zh

详情
上傳目錄的相對路徑. 這用於建構用於檢視已上傳檔案的URL.

在大多數情況下，這通常是路徑的一部分，例如「/w/images」. 如果上傳的檔案使用不同的域名來提供，這可以是包含主機名的完整URL，例如「http://upload.wikimedia.org/wikipedia/en」.

If the variable contains a local path (without "http://") then it must start with a slash, otherwise it will result in a bad URL. (For example if you set it to "foldername" it will result in files being loaded from " http://www.example.comfoldername " - note the missing slash after ".com")

To enable permission checks on image files, $wgUploadPath can be pointed to the img_auth.php script - see  for instructions.

