Manuel:$wgAllowCopyUploads

This page is a translated version of the page Manual:$wgAllowCopyUploads and the translation is 54% complete.
Other languages:
English • ‎Tiếng Việt • ‎español • ‎français • ‎magyar • ‎polski • ‎русский • ‎中文 • ‎日本語
Téléversements: $wgAllowCopyUploads
Permet les téléversements à partir d'URL ou de fichiers locaux.
Introduit dans la version :1.8.0 (r16158)
Retiré dans la version :Encore utilisé
Valeurs autorisées :(booléen)
Valeur par défaut :false

Détails

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: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 whitelist a specific set by using $wgCopyUploadsDomains .

Exemple d'utilisation

This example setup will allow all autoconfirmed users to upload by URL, via Special:Upload or the API. A la fin de votre fichier LocalSettings.php , ajoutez :

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

Voir aussi