Manuel:$wgCopyUploadsFromSpecialUpload
Téléversements: $wgCopyUploadsFromSpecialUpload | |
---|---|
Ajouter une interface à Special:Upload pour autoriser le téléversement à partir d'URLs |
|
Introduit dans la version : | 1.20.0 (Gerrit change 16946; git #8c6c29b3) |
Retiré dans la version : | Encore utilisé |
Valeurs autorisées : | (booléen) |
Valeur par défaut : | false |
Autres paramètres : Alphabétique | Par Fonction |
Détails
By default, upload by URL, when enabled via $wgAllowCopyUploads
, is only possible using the API (or extensions such as UploadWizard).
Pour rendre l'option utilisable à partir de Special:Upload, vous pouvez initialiser cette variable à true.
In order to make use of this option, users also need to have the option $wgAllowCopyUploads
set to true and the associated user right upload_by_url
.
Exemple d'utilisation
This example setup will allow all autoconfirmed users to upload by URL, via Special:Upload or the API. Ajoutez le code suivant à la fin de votre fichier LocalSettings.php :
$wgGroupPermissions['autoconfirmed']['upload_by_url'] = true;
$wgAllowCopyUploads = true;
$wgCopyUploadsFromSpecialUpload = true;