Last modified: 2014-11-09 19:06:53 UTC
It have already been discused in portuguese Wikipedia, we are creating a non-free content policy. We have decided use the follow settings: FileExtensions: 'png', 'gif', 'jpg', 'jpeg', 'svg', 'djvu', 'ogg', 'oga' and 'mid' MaxUploadSize: 500KB The upload will be only allowed to users that have more than 1000 edits and 45 days of registration, than it is need to create a 'uploader' user group to be automatic promoted.
Please provide a link to consensus for this change.
(In reply to comment #1) > Please provide a link to consensus for this change. Exemption Doctrine Policy: http://pt.wikipedia.org/wiki/Wikipedia:Conte%C3%BAdo_restrito#Pol.C3.ADtica_de_Isen.C3.A7.C3.A3o_da_Doutrina_.28PID.29 Consensus of extensions and max upload size: http://pt.wikipedia.org/wiki/Wikipedia:Uso_Restrito_de_Conte%C3%BAdo/Implementa%C3%A7%C3%A3o/Arquivo4#O_que_ainda_falta:Imagens_e_.C3.A1udio Consensus of 1000 edits and 45 days restriction: http://pt.wikipedia.org/wiki/Wikipedia_Discuss%C3%A3o:Uso_Restrito_de_Conte%C3%BAdo/Implementa%C3%A7%C3%A3o#N.C3.BAmero_m.C3.ADnimo_de_edi.C3.A7.C3.B5es
$wgMaxUploadSize is currently broken in MediaWiki and needs fixing before this request can be implemented.
(In reply to comment #3) > $wgMaxUploadSize is currently broken in MediaWiki and needs fixing before this > request can be implemented. Now fixed in trunk, requires deployment of r65049.
Reading the comments of bug 17941 I see the problem can be fixed using JavaScript, I have developed the follow script to create adicional fields on the upload form (it is in Wikibooks to test, the upload is disabled in pt.wiki): http://pt.wikibooks.org/wiki/Usuário:Danilo.mac/monobook.js Can I add something to this script to help the MediaWiki to limit the upload size?
(In reply to comment #5) > Can I add something to this script to help the MediaWiki to limit the upload > size? No.
After many time... The problem has been solved? Is possible enable uploads on ptwiki? Thanks; [[m:user:Sir Lestaty de Lioncourt]]
Done. =================================================================== Index: InitialiseSettings.php =================================================================== --- InitialiseSettings.php (revision 1079) +++ InitialiseSettings.php (working copy) @@ -818,7 +818,6 @@ 'ndswiki' => false, # http://mail.wikipedia.org/pipermail/wikitech-l/2005-October/032136.html 'plwikinews' => true, 'plwikiquote' => false, - 'ptwiki' => false, # bug 7742 'ptwiktionary' => false, # bug 14193 'ruwikiquote' => false, 'specieswiki' => false, @@ -7874,6 +7873,7 @@ 'wgMaxUploadSize' => array( // Only affects URL uploads; web uploads are enforced by PHP. 'default' => 1024*1024*500, // 500MB try this :D + 'ptwiki' => 1024*500, // 500 KB, as requested in #23186 ), 'wmgUseCommunityVoice' => array (
Hi, first thanks, second, need to change 'wgUploadNavigationUrl' to default upload link. Thanks again. [[m:user:Sir Lestaty de Lioncourt]]
Done. =================================================================== Index: InitialiseSettings.php =================================================================== --- InitialiseSettings.php (revision 1089) +++ InitialiseSettings.php (working copy) @@ -854,7 +854,7 @@ 'mlwiki' => 'http://ml.wikipedia.org/wiki/വിക്കിപീഡിയ:അപ്ലോഡ്', 'ndswiki' => 'http://commons.wikimedia.org/wiki/Special:Upload', 'nlwiki' => 'http://commons.wikimedia.org/wiki/Commons:Upload/nl?uselang=nl', - 'ptwiki' => '/wiki/Ajuda:Como_carregar_ficheiros_no_Commons', + # 'ptwiki' => '/wiki/Ajuda:Como_carregar_ficheiros_no_Commons', 'rowiki' => '/wiki/Wikipedia:Trimite_fi%C5%9Fier', 'thwiki' => '/wiki/%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4%E0%B8%9E%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2:%E0%B8%AD%E0%B8%B1%E0%B8%9B%E0%B9%82%E0%B8%AB%E0%B8%A5%E0%B8%94', 'zhwiki' => '/wiki/Project:%E4%B8%8A%E4%BC%A0',
Done. =================================================================== Index: InitialiseSettings.php =================================================================== --- InitialiseSettings.php (revision 1116) +++ InitialiseSettings.php (working copy) @@ -853,7 +853,7 @@ 'mlwiki' => 'http://ml.wikipedia.org/wiki/വിക്കിപീഡിയ:അപ്ലോഡ്', 'ndswiki' => 'http://commons.wikimedia.org/wiki/Special:Upload', 'nlwiki' => 'http://commons.wikimedia.org/wiki/Commons:Upload/nl?uselang=nl', - # 'ptwiki' => '/wiki/Ajuda:Como_carregar_ficheiros_no_Commons', + 'ptwiki' => 'http://pt.wikipedia.org/wiki/Wikipedia:Carregar_ficheiro', 'rowiki' => '/wiki/Wikipedia:Trimite_fi%C5%9Fier', 'thwiki' => '/wiki/%E0%B8%A7%E0%B8%B4%E0%B8%81%E0%B8%B4%E0%B8%9E%E0%B8%B5%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2:%E0%B8%AD%E0%B8%B1%E0%B8%9B%E0%B9%82%E0%B8%AB%E0%B8%A5%E0%B8%94', 'zhwiki' => '/wiki/Project:%E4%B8%8A%E4%BC%A0',