Support sending 4GB file.

This commit is contained in:
Devesh Pal 2022-07-27 23:23:38 +05:30 committed by GitHub
parent db3faedbfc
commit 09dd092ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1341,7 +1341,7 @@ def get_appropriated_part_size(file_size):
return 128 return 128
if file_size <= 786432000: # 750MB if file_size <= 786432000: # 750MB
return 256 return 256
if file_size <= 2097152000: # 2000MB if file_size <= 4294967000: # 4000MB
return 512 return 512
raise ValueError('File size too large') raise ValueError('File size too large')