Manual:$wgEnableUploads
Appearance
| ファイルとファイル アップロード: $wgEnableUploads | |
|---|---|
| ウィキを通して画像やその他のファイルをアップロードできるようにする。 |
|
| 導入されたバージョン: | 1.5.0 |
| 除去されたバージョン: | 使用中 |
| 許容される値: | (真偽値) |
| 既定値: | false |
| その他の設定: アルファベット順 | 機能順 | |
詳細
LocalSettings.php ファイルにあり、true を設定すると、画像やその他の有効なファイルをアップロードできます。
Users will see an ファイルをアップロード link appearing in the toolbox on the bottom-left (usually), linking to the Special:Upload page.
This link appears for users with the upload right (logged-in users by default).
登録するファイル名:field 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
登録するファイル名:, uploading this file without changing登録するファイル名:will create a archive file and store the older version in/images/archivefolder.
When enabling file uploads, you must also make the
images directory writable by the web server, otherwise you will just see an error such as failed to open stream: Operation not permitted or 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 Manual:ファイルのアップロードの設定
関連項目
- Manual:$wgUploadDirectory - 既定のアップロードフォルダ(
/images)を変更する場合の設定。 - Manual:$wgUploadSizeWarning
- Manual:$wgMaxUploadSize - default is 100 MB, change it if needed.
- Manual:ファイルのアップロードの設定
- Manual:Configuration settings#Uploads - a list of all configuration variables related to file uploads
- カテゴリ:アップロード変数 - similar list as a category (ordered alphabetically)
- Manual:インターフェイス/Uploaddisabledtext - message at Special:Upload if uploads disabled
- file_uploads php.ini ディレクティブ。 This must be enabled for uploads to work