s3_upload_4.py 521 B

1234567
  1. def _multipart_upload(self, local_file, bucket, s3_file):
  2. transfer_config = TransferConfig(multipart_threshold=1024 * 25,
  3. multipart_chunksize=1024 * 25,
  4. use_threads=False)
  5. self.s3_resource.Object(bucket, s3_file).upload_file(local_file,
  6. Config=transfer_config,
  7. Callback=ProgressPercentage(local_file))