Opened 15 years ago

Closed 15 years ago

#10536 closed (duplicate)

Broken file-like object on upload

Reported by: chris@… Owned by: nobody
Component: File uploads/storage Version: 1.0
Severity: Keywords: seek
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

File-like objects should support a third argument to the seek() method called whence, which specifies where-abouts to start seeking from (relative/absolute/end-of-file). Because Django's implementation is broken for uploaded files, I cant do this:

myzip = ZipFile(self.myfile)

inside the save() method of my model. Please see Python's documentation for file-like objects, and specifically the seek() method in that documentation (pydoc file).

Change History (1)

comment:1 by Ramiro Morales, 15 years ago

Resolution: duplicate
Status: newclosed

I'm pretty sure this is a duplicate of #10047

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