django.forms FileField does not allow empty files.
|Reported by:||James Henstridge||Owned by:||Flaviu Simihaian|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The FileField.clean() method raises ValidationError if the uploaded file is empty.
While this is useful in many cases, there are times when it is useful to allow empty files. Since the check is mixed in with the other validation checks, it isn't very easy to disable the check in a subclass without reimplementing the entire clean() method.
It would be nice if FileField could be directly configured to disable the empty check.
Change History (14)
comment:3 Changed 7 years ago by
|Owner:||changed from nobody to Erik Romijn|
|Status:||new → assigned|
|Triage Stage:||Unreviewed → Accepted|
|Version:||1.1 → SVN|
comment:4 Changed 7 years ago by
|Owner:||changed from Erik Romijn to nobody|
|Status:||assigned → new|