Ticket #13901: file_chunks.diff

File file_chunks.diff, 518 bytes (added by Erin Kelly, 14 years ago)
  • django/core/files/base.py

     
    6565        counter = self.size
    6666
    6767        while counter > 0:
    68             yield self.read(chunk_size)
    69             counter -= chunk_size
     68            chunk = self.read(chunk_size)
     69            yield chunk
     70            counter -= len(chunk_size)
    7071
    7172    def multiple_chunks(self, chunk_size=None):
    7273        """
Back to Top