Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:$wgUploadDirectory

From mediawiki.org
Translate this page
Languages:
Server URLs and file paths: $wgUploadDirectory
The file system path of the upload directory.
Introduced in version:Before 1.1.0
Removed in version:Still in use
Allowed values:(absolute path)
Default value:"{$IP}/images" (1.8+)
"{$IP}/upload" (pre 1.1.0 - 1.7)
(Note: The default value of this variable depends on other variables, such as the values set inSetup.php, afterLocalSettings.php is executed)
Other settings:Alphabetical |By function

Details

[edit]

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.SeeManual:Configuring file uploads#Check directory security.

By default, uploaded files are actually stored in subfolders of $wgUploadDirectory.SeeManual: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 yourLocalSettings.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)!

See also

[edit]
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:$wgUploadDirectory&oldid=7512463"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp