Hi António, In my database model I have a field of type upload on which I set the following validators:
db.logofile.file.requires=[IS_IMAGE(extensions=('gif','jpg','jpeg','png'),maxsize=(348,108)),IS_LENGTH(36*1024,error_message='file
size exceeds 36 KB')]
The IS_LENGTH(...) limits the file size.
Kind regards,
Annet

