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 <toni...@cau.cat> wrote:
> 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 ooui.
>
>             'fileupload' => array(
>                 'section' => 'upload',
>                 'label' => 'Upload file',
>                 'class' => 'HTMLTextField',
>                 'type' => 'file'
>             ),
>
> This is shown as a text field but not as a file upload, as I would have
expected...
>
>
> Is there any way to handle this and using OOUI at the same time?
>
> Thanks!
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to