Re: validating file uploads

2011-04-20 Thread Daniel Gerzo
On 20.4.2011 11:36, Daniel Gerzo wrote: Is there a way to access request.FILES from form.clean() method? I'd like to detect the invalid files within the form validation, so that I can render the errors should there be some. I guess I have solved it by accessing self.files.values() in the form'

validating file uploads

2011-04-20 Thread Daniel Gerzo
Hello, my form allows file uploads, and obviously I need to validate the received files. In order to validate the files, I need to read them. Is there a way to access request.FILES from form.clean() method? I'd like to detect the invalid files within the form validation, so that I can render