Manual:$wgCopyUploadsDomains/ar

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<translate> Files and file uploads</translate>: $wgCopyUploadsDomains
Limit $wgAllowCopyUploads to a specific list of domains
<translate> Introduced in version:</translate>1.20.0 (Gerrit change 16946; git #8c6c29b3)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>[]

Details

The domains in the list can include wildcard characters (*) in place of any of the domain levels, e.g. '*.flickr.com' or 'upload.*.gov.uk'.

If this array is empty (per the default), all domains are accepted.

Example usage

This example setup will allow all autoconfirmed users to upload by URL, via Special:Upload or the API, from Flickr and some UK Government websites only. Add to the bottom of your LocalSettings.php :

$wgGroupPermissions['autoconfirmed']['upload_by_url'] = true;
$wgAllowCopyUploads = true;
$wgCopyUploadsFromSpecialUpload = true;
$wgCopyUploadsDomains = array( '*.flickr.com', 'upload.*.gov.uk' );

See also