Manual:$wgUploadDirectory/fi
From Linux Web Expert
<translate> Server URLs and file paths</translate>: $wgUploadDirectory | |
---|---|
The file system path of the upload directory. |
|
<translate> Introduced in version:</translate> | pre 1.1.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (absolute path) |
<translate> Default value:</translate> | "{$IP }/images" (1.8+)"{$IP }/upload" (pre 1.1.0 - 1.7)(<translate> Note:</translate> <translate> The default value of this variable depends on other variables, such as the values set in <tvar|1>Setup.php </>, after <tvar|2>LocalSettings.php </> is executed</translate>) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Tiedot
The file system path of the folder where uploaded files will be stored.
If this variable is changed, you may need to update $wgUploadPath
accordingly.
This location needs to be writable by the web server. See Manual:Configuring file uploads#Check directory security.
By default, uploaded files are actually stored in subfolders of $wgUploadDirectory. See Manual:Configuring file uploads#Upload directory for information, and how to disable this behavior.
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
)!