'Flushes the write buffer.'

def _flush_write_buffer(self):

    if self._buffer_file_size:
        self._write_counter += 1
        self.file.seek(0)
        part = self._multipart.Part(self._write_counter)
        part.upload(Body=self.file.read())
