Manual:$wgUploadDirectory

From MediaWiki.org
Jump to: navigation, search

Other languages:
العربية • ‎Deutsch • ‎English • ‎español • ‎français • ‎日本語 • ‎Nederlands • ‎polski • ‎português do Brasil • ‎русский • ‎українська
Uploads: $wgUploadDirectory
The file system path of the upload directory.
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed values: absolute path
Default value: "{$IPManual:$IP}/images"

"{$IPManual:$IP}/upload" (prior to 1.8.0)
(Note: The default value of this variable depends on other variables, such as the values set in Setup.phpManual:Setup.php, after LocalSettings.phpManual:LocalSettings.php is executed)

Other settings: Alphabetical | By function

Details[edit]

The file system path of the folder where uploaded files will be stored.

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.

Note Note: There are other variables which are defined relative to this one. If you redefine this in your LocalSettings.phpManual:LocalSettings.php then all dependent variables including $wgUploadPathManual:$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)!

See also[edit]