#8486 closed (fixed)
Incorrect 'UploadedFile' attributes on 'Request and response objects' page
Reported by: | mrsanders | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The description of the FILES
attribute of HttpRequest objects (at http://www.djangoproject.com/documentation/request_response/#attributes) is incorrect:
*
A dictionary-like object containing all uploaded files. Each key in FILES
is the name
from the <input type="file" name="" />
. Each value in FILES
is an UploadedFile
object containing the following attributes:
read(num_bytes=None)
— Read a number of bytes from the file.file_name
— The name of the uploaded file.file_size
— The size, in bytes, of the uploaded file.chunk()
— A generator that yields sequential chunks of data.
*
The attributes file_name
and file_size
are actually called name
and size
.
Attachments (1)
Change History (5)
comment:1 by , 16 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
by , 16 years ago
Attachment: | 8486.typo.diff added |
---|
comment:2 by , 16 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Thanks for the report. Also note that the
chunks()
method takes an 's'.