Opened 6 years ago

Closed 6 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: UI/UX:

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 Changed 6 years ago by ramiro

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

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

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