Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions solvebio/resource/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,7 @@ def upload_file(cls, local_path, remote_path, vault_full_path, **kwargs):
# Get vault
vault = Vault.get_by_full_path(vault_full_path, client=_client)

# Get MD5 and check if multipart upload is needed
multipart_threshold = kwargs.get(
"multipart_threshold", 64 * 1024 * 1024
) # 64MB default
local_md5, _ = md5sum(local_path, multipart_threshold=multipart_threshold)
local_md5, _ = md5sum(local_path, None)

# Get a mimetype of file
mime_tuple = mimetypes.guess_type(local_path)
Expand Down
Loading