def METHOD_NAME(self, upload_bytes, chunk_size):
    num_bytes_written = write_bytes_to_file(
        self.temporary_file_path, self.upload_offset, upload_bytes, makedirs=True
    )
    if num_bytes_written > 0:
        self.upload_offset += num_bytes_written
        self.save()