Manual:$wgAllowCopyUploads

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgAllowCopyUploads and the translation is 46% complete.

Other languages:
Deutsch • ‎English • ‎Tiếng Việt • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語
Imágenes subidas: $wgAllowCopyUploads
Allow uploads from URLs as well as local files.
Introducido en la versión:1.8.0 (r16158)
Eliminado en la versión:aún se usa
Valores permitidos:(booleano)
Valor predeterminado:false
Otros configuración: Alfabéticamente | Por Función

Detalles

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 .

Ejemplo de uso

This example setup will allow all autoconfirmed users to upload by URL, via Special:Upload or the API. Agrega al final de tu LocalSettings.php :

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

Véase también