Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed Oct 22, 2024
1 parent 438ad8b commit aeb0244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage3/_sync/resumable.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def upload(
raise StorageException("Must specify a filename")

target_file = objectname if upload_defer else filename
chunk_size = 1048576 * int(abs(mb_size)) # 1024 * 1024 * mb_size
chunk_size = 1048576 * int(max(1, mb_size)) # 1024 * 1024 * mb_size
size = None
self._filestore.update_file_headers(
target_file, "Content-Type", "application/offset+octet-stream"
Expand Down

0 comments on commit aeb0244

Please sign in to comment.