def METHOD_NAME(self):
    data = self.cleaned_data['code']
    if self.check_is_empty(data):
        raise forms.ValidationError("No file submitted.")
    if not self.check_size(data):
        raise forms.ValidationError("File size exceeded max size, component can not be uploaded.")
    validate_filename(self.component.filename, self.component.filename_type, data.name)
    return data