#8486: Incorrect 'UploadedFile' attributes on 'Request and response objects' 
page
---------------------------+------------------------------------------------
 Reporter:  mrsanders      |       Owner:  nobody    
   Status:  new            |   Milestone:  1.0       
Component:  Documentation  |     Version:  SVN       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 The description of the {{{FILES}}} attribute of !HttpRequest objects (at
 http://www.djangoproject.com/documentation/request_response/#attributes)
 is incorrect:

 *******************[[br]]
 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.
 *******************[[br]]

 The attributes {{{file_name}}} and {{{file_size}}} are actually called
 {{{name}}} and {{{size}}}.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8486>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to