I'd like to validate uploaded file's size in my Pyramid application using formencode. As far as I understand, I need to create a class inherited from formencode.validators.FormValidator) and put it to chained_validators. But I can't figure out a way to check the uploaded file's size in the validate_python method. Is it even possible?
Thanks in advance, Ivan.
Another way to do it: