Skip to content

Commit

Permalink
Fixed large file upload, by passing bytes instead of bytearray. (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
khustup committed Sep 20, 2023
1 parent 02664a2 commit a537eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeplake/core/storage/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def __setitem__(self, path, content):
self.check_readonly()
self._check_update_creds()
path = "".join((self.path, path))
content = bytearray(memoryview(content))
content = bytes(memoryview(content))
try:
self._set(path, content)
except botocore.exceptions.ClientError as err:
Expand Down

0 comments on commit a537eb9

Please sign in to comment.