Manual:$wgAllowCopyUploads

From MediaWiki.org
Jump to navigation Jump to search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎Tiếng Việt • ‎中文
Uploads: $wgAllowCopyUploads
Allow uploads from URLs as well as local files.
Introduced in version: 1.8.0 (r16158)
Removed in version: still in use
Allowed values: (boolean)
Default value: false
Other settings: Alphabetical | By function

Details[edit]

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 Extension:UploadWizardExtension:UploadWizard). To make the option usable from Special:Upload, you need to set $wgCopyUploadsFromSpecialUploadManual:$wgCopyUploadsFromSpecialUpload to true as well.

By default, any source URL location is allowed, but you can whitelist a specific set by using $wgCopyUploadsDomainsManual:$wgCopyUploadsDomains.

Example usage[edit]

This example setup will allow all autoconfirmed users to upload by URL, via Special:Upload or the API. Add to the bottom of your LocalSettings.phpManual:LocalSettings.php:

$wgGroupPermissions['autoconfirmed']['upload_by_url'] = true;
$wgAllowCopyUploads = true;
$wgCopyUploadsFromSpecialUpload = true;

See also[edit]