Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#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)

8486.typo.diff (839 bytes ) - added by Julien Phalip 16 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Julien Phalip, 16 years ago

Has patch: set
Triage Stage: UnreviewedAccepted

Thanks for the report. Also note that the chunks() method takes an 's'.

by Julien Phalip, 16 years ago

Attachment: 8486.typo.diff added

comment:2 by Collin Grady, 16 years ago

Triage Stage: AcceptedReady for checkin

comment:3 by Russell Keith-Magee, 16 years ago

Resolution: fixed
Status: newclosed

(In [8518]) Fixed #8486: Corrected some file attribute names in the request/response docs. Thanks to mrsanders for the report.

comment:4 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top