def METHOD_NAME(self):
    data = self.cleaned_data['qqfilename']
    if not data.lower().endswith(FILE_EXTENTIONS):
        raise forms.ValidationError(_("This is not a valid file type to upload."))
    return data