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'
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
2 matches
Mail list logo