Upload handler should pass errors on to forms.FileField
|Reported by:||Marti||Owned by:||ANUBHAV JOSHI|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
As far as I can tell, currently no mechanism exists for file upload handlers to pass errors forward to form fields.
The result is that any upload errors result in "This field is required" or "The submitted file is empty" messages.
Other errors worth handling:
- File upload size limits
- Unicode decode error in filename
Change History (19)
comment:1 Changed 6 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|
comment:5 Changed 3 years ago by
|Owner:||changed from nobody to ANUBHAV JOSHI|
|Status:||new → assigned|