Add blob uploader helper class, for easy management of all the state associated with uploading blobs

This commit is contained in:
Joseph Schorr 2018-09-14 16:24:55 -04:00
parent 5d2fe535b4
commit ba39737c3a
3 changed files with 425 additions and 1 deletions

View file

@ -70,7 +70,6 @@ class FakeStorage(BaseStorageV2):
def stream_upload_chunk(self, uuid, offset, length, in_fp, _, content_type=None):
upload_storage = _FAKE_STORAGE_MAP[uuid]
upload_storage.seek(offset)
try:
return self.stream_write_to_fp(in_fp, upload_storage, length), {}, None
except IOError as ex: