Modifying upload handlers on the fly - accessing request.POST also makes it immutable
|Reported by:||Rozza||Owned by:||nobody|
|Severity:||Keywords:||newforms admin file uploadhandler|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In the manual it warns accessing request.FILES will make the file uploaders immutable. However if you access request.POST like the @staff_member_required decorator does you can't then append or insert an upload handler in the view function.
As the parsing of the POST and FILES data is coupled - suggest updating the documentation to warn accessing request.POST has the same end effect as accessing request.FILES.
Change History (5)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|