Handbuch:$wgAllowCopyUploads
Dateien und Datei-Uploads: $wgAllowCopyUploads | |
---|---|
Erlaube Uploads von URLs sowie lokale Dateien. |
|
Eingeführt in Version: | 1.8.0 (r16158) |
Entfernt in Version: | Weiterhin vorhanden |
Erlaubte Werte: | (Wahrheitswert) |
Standardwert: | false |
Andere Einstellungen: Alphabetisch | Nach Funktion |
Details
Users also need to have the associated user right upload_by_url
before this option is available.
Prior to MediaWiki 1.20, administrators (sysops) had this permission by default, but since then the permission needs to be granted explicitly.
By default, upload by URL are only possible using the API (or extensions such as Erweiterung:UploadWizard ).
To make the option usable from Special:Upload, you need to set $wgCopyUploadsFromSpecialUpload
to true as well.
By default, any source URL location is allowed, but you can allow only a specific set by using $wgCopyUploadsDomains
.
Verwendungsbeispiel
This example setup will allow all autoconfirmed users to upload by URL, via Special:Upload or the API. Füge am Ende deiner LocalSettings.php hinzu:
$wgGroupPermissions['autoconfirmed']['upload_by_url'] = true;
$wgAllowCopyUploads = true;
$wgCopyUploadsFromSpecialUpload = true;