Forms documentation doesn't describe how to handle uploads
The general form documentation Working with Forms does not mention how to handle forms that include files. There is no mention of passing request.FILES
into the Form's constructor, nor of the required enctype="multipart/form-data"
attribute of the <form>
tag.
However, the "next" article Creating forms from models refers back to Working with Forms for handling file uploads.:
" ... a form requires multipart file upload (and hence whether request.FILES must be passed to the form), etc. See Working with Forms for more information."
The documentation for handling form uploads in buried in the Forms API. It would be very useful to have this info (or a link to it) in the introductory "Working with forms" document. At the very least, the reference to "Working with forms" from "Creating forms from models" needs to be removed, since the information is not contained there.
Change History
(9)
milestone: |
1.0 → post-1.0
|
milestone: |
→ 1.1
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Jacob
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Milestone post-1.0 deleted