Broken file-like object on upload
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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).