Opened 16 years ago

Closed 16 years ago

#7659 closed (worksforme)

UploadedFile is broken and its documentation is incorrect

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords: uploadedfile upload
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

First, an UploadedFile instance's read() method always returns empty. Second, the documentation at http://www.djangoproject.com/documentation/upload_handling refers to a chunks() method which does not exist, and should be chunk().

Change History (2)

in reply to:  description comment:1 by Ramiro Morales, 16 years ago

Replying to anonymous:

First, an UploadedFile instance's read() method always returns empty.

Please post an minimal but complete example demonstrating the problem, this is being tested in the test suite. See
http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/file_uploads/views.py#L24

Second, the documentation at http://www.djangoproject.com/documentation/upload_handling refers to a chunks() method which does not exist, and should be chunk().

This has already been reported as #7638.

comment:2 by Jacob, 16 years ago

Resolution: worksforme
Status: newclosed

Marking worksforme. Feel free to reopen if you've got more details.

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