[html-formfu] Constraint::File::Size returns error on valid input
Erez Schatz
moonbuzz at gmail.com
Sun Dec 12 16:12:47 GMT 2010
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?
TIA,
--
Erez
Observations, not opinions.
More information about the HTML-FormFu
mailing list