Page MenuHomePhabricator

Enable upload in portuguese Wikipedia
Closed, ResolvedPublic

Description

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.


Version: unspecified
Severity: enhancement

Details

Reference
bz23186

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:04 PM
bzimport set Reference to bz23186.
bzimport added a subscriber: Unknown Object (MLST).

Please provide a link to consensus for this change.

Bryan.TongMinh wrote:

$wgMaxUploadSize is currently broken in MediaWiki and needs fixing before this request can be implemented.

Bryan.TongMinh wrote:

(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?

Bryan.TongMinh wrote:

(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]]

jeluf wrote:

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]]

jeluf wrote:

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',

jeluf wrote:

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',