Manual:$wgUploadPath/pt-br
URLs de servidor e caminhos de arquivo: $wgUploadPath | |
---|---|
The path segment of the upload directory. |
|
Introduzido na versão: | Before 1.1.0 |
Removido na versão: | ainda em uso |
Valores permitidos: | (path) |
Valor padrão: | "{$wgScriptPath }/images" (1.8+)"{$wgScriptPath }/upload" (pre-1.1 - 1.7)(Nota: O valor padrão dessa variável depende de outras variáveis, tais como os valores definidos em Setup.php , after LocalSettings.php é executado) |
Outras definições: Alfabético | Por função |
Details
The relative path to the upload directory. This is used to construct the URLs for viewing uploaded files.
In most cases this is just the path component, such as "/w/images". If uploaded files are served from a different domain, this can be a fully-qualified URL with hostname, such as "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 ($wgUploadPath = "$wgScriptPath/img_auth.php";
) - see Manual:Image authorization for instructions.
LocalSettings.php
then all dependent variables including $wgUploadDirectory will need redefining also. If both these settings are not coherent the files will be uploaded to a different folder ($wgUploadDirectory
) than from where MediaWiki will try to retrieve them for viewing ($wgUploadPath
)!$wgUploadPath