code: def save(self, filename, chunk_size=CHUNK_SIZE):
          
          with open(filename, 'wb') as fp:
              while True:
                  # Chunk writer
                  data = self.file.read(chunk_size)
                  if not data:
                      break
                  fp.write(data)
              # Flush all data
              fp.flush()
  
          # Go to start of file.
          if self.file.seekable():
              self.file.seek(0)
docs: Write file to disk
  
          :param filename:
          :param chunk_size: