'Write a chunk of data into the `StringIO` object.
:param chunk: the chunk of data to write as a string object'

def write(self, chunk):

    self._fp.write(chunk)
    self._upload_size += len(chunk)
    return self._upload_size
