[html-formfu] File element issues
Carl Franks
fireartist at gmail.com
Thu Jan 17 16:01:28 GMT 2008
On 11/01/2008, Diego Kuperman <diego at freekeylabs.com> wrote:
> Hi!, thanks for adding Catalyst::Request::Upload methods !
>
> Did you experiment something like my other issue?
>
> >>
> >> * If I put the constraint "required" on a file field then
> >> form->submitted_and_valid is always false, but the form->param and
> >> $c->req->upload gave the file element ok!.
> >> My yml description looks like this (I stripped aditional fields)
> >>
> >> indicator: submit
> >> auto_fieldset: { legend : 'Song data' }
> >> elements:
> >>
> >> - type: File
> >> name: songfile
> >> label: MP3/OGG File
> >> constraints:
> >> - Required
> >>
> >> - type: Submit
> >> name: submit
> >> value: Save song
> >>
>
> I don't know how to make a test case on this :(
All constraints should now handle file uploads ok (at least, those
that make make sense when it comes to a file).
Cheers,
Carl
More information about the HTML-FormFu
mailing list