[html-formfu] Constraint::File::Size returns error on valid input

Carl Franks fireartist at gmail.com
Sun Dec 12 18:08:15 GMT 2010


On 12 December 2010 16:12, Erez Schatz <moonbuzz at gmail.com> wrote:
> Hi, I'm using the following to validate a file upload field:
>
> - type: File
>  name: photo
>  label: 'Photo:'
>  constraints:
>  - type: File::Size
>    minimum: 1
>    maximum: 500000
>
> Yet, when I attempt to upload a 15 kb file, which should be well within
> the parameters, the form invalidates with a "File-size must be between 1
> and 500000 bytes" error. Is this a familiar issue, or something I can do
> to resolve this?

Hi,
I'm not aware of any issues, but I'll look into it.
Is this with the latest cpan version, or the new Moosified version in trunk?
Is this under Catalyst, or the default HTML::FormFu::QueryType::CGI or
HTML::FormFu::QueryType::CGI::Simple ?
Cheers,
Carl



More information about the HTML-FormFu mailing list