|Files and file uploads: $wgEnableUploads|
|其他设置： 按首字母排序 | 按功能排序|
Destination filenamefield there in Special:Upload page is a case sensitive field and should be used to give descriptive filename instead of using the default one populated from source file name.
- If a file already exists in the system with name
Destination filename, uploading this file without changing
Destination filenamewill create a archive file and store the older version in
When enabling file uploads, you must also make the
imagesdirectory writable by the web server, otherwise you will just see an error such as
failed to open stream: Operation not permittedor
Could not create directory "mwstore://local-backend/local-public/0/00". Note that a web server writable directory is not insecure in itself, but can be thought of as the first half of a successful attack to your web server, as such you might like to explore alternatives using img_auth.php.
IMPORTANT: Uploads need to be set up properly in order to be secure! There are several related configuration settings. It is recommended to read the more complete instructions at 手册:配置文件上传
- 手册:$wgUploadDirectory - if one wants to change default upload folder, which is
- 手册:$wgMaxUploadSize - 默认为100 MB，如有需要请更改它。
- 手册:Configuration settings#Uploads - a list of all configuration variables related to file uploads
- 分类:上传变量 - similar list as a category (ordered alphabetically)
- Manual:Interface/Uploaddisabledtext - message at Special:Upload if uploads disabled
- file_uploads php.ini directive.
This must be enabled for uploads to work