multipart_upload_14.py 297 B

12345678
  1. def init_multipart_upload(self):
  2. res = self.s3_client.create_multipart_upload(
  3. Bucket=DESTINATION_BUCKET,
  4. Key=MULTIPART_UPLOAD_FILE_NAME
  5. )
  6. print ("文件 {} 初始化分片上传 upload_id {}".format(MULTIPART_UPLOAD_FILE, res["UploadId"]))
  7. return res["UploadId"]