[Wikitech-l] Was macht dich diese Woche glücklich? / What's making you happy this week? (Week of 15 April 2018)

2018-04-15 Thread Pine W
*Conference* The 2018 Wikimedia Conference starts this week in Germany. The core conference will occur from the 20th through the 22nd. *WMF Research Showcase* On Wednesday, the WMF Research Showcase

Re: [Wikitech-l] File upload file in HTMLForm with ooui

2018-04-15 Thread Brian Wolff
Ok, I looked into this a little closer. type => file is missing from HTMLForm::typeMapping. But class overrides this, and the HTMLTextField has some code where the type parameter is just stuck into the html type attribute so it can be used in multiple places. But in the OOUI case

Re: [Wikitech-l] File upload file in HTMLForm with ooui

2018-04-15 Thread Toni Hermoso Pulido
Hi Brian, if I only specify one I get this exception: ... Descriptor with no class for fileupload: Array ( [section] => upload [label] => Upload file [type] => file [class] => ) ... Not using ooui, both are needed and it works... On 15/04/2018 19:40, Brian Wolff wrote: Im not sure, but

Re: [Wikitech-l] File upload file in HTMLForm with ooui

2018-04-15 Thread Brian Wolff
Im not sure, but having the class specified as HTMLTextField looks wrong (type & class are mutually exclusive. You should only specify one). -- Brian On Sunday, April 15, 2018, Toni Hermoso Pulido wrote: > Hello, > > I'm trying to migrate a HTMLForm to use ooui > > by following

[Wikitech-l] File upload file in HTMLForm with ooui

2018-04-15 Thread Toni Hermoso Pulido
Hello, I'm trying to migrate a HTMLForm to use ooui by following https://www.mediawiki.org/wiki/OOUI/Using_OOUI_in_MediaWiki htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, 'myform' ); I noticed that a file upload form field that I had defined is not rendered correctly when using