-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

if I have

IS_NULL_OR(IS_IMAGE(maxsize=(5000,4000), minsize=(50,50),
extensions=('jpeg', 'png', 'gif')))

as a field validator, the form.accepts with no image to upload causes:

File "/web2py/gluon/sqlhtml.py", line 802, in accepts
    (source_file, original_filename) = (f.file,f.filename)
AttributeError: 'NoneType' object has no attribute 'file'

Is there anything wrong with my validator settings?

Thanks!

David

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpyAeIACgkQ3oCkkciamVGGKQCgnxUFkzlYVODsS4BVqa/gvIbj
07gAnR0cNwp2UrfFFXc7LFkmHR6ZebeS
=Qc1W
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to