Opened 8 years ago

Closed 8 years ago

#7659 closed (worksforme)

UploadedFile is broken and its documentation is incorrect

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

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)

comment:1 in reply to:  description Changed 8 years ago by Ramiro Morales

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 Changed 8 years ago by Jacob

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