[英]How to Upload to AWS S3 with Transfer Acceleration using Python BOTO
在嘗試將文件上傳到 S3 時,如何將 Transfer Acceleration 端點 url 傳遞給 boto upload_file 函數?
我目前的代碼是:
s3.Bucket(BUCKET).upload_file(filetoupload, pathnfilename, ExtraArgs={'ACL':'public-read'})
當您創建資源對象時,您將提供它:
s3 = boto3.resource('s3', endpoint_url="the_endpoint")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.