【发布时间】:2014-09-10 03:38:50
【问题描述】:
给定一个可下载文件的url,如:
http://zannee-docs.s3.amazonaws.com/rockefeller-summary.pdf
有没有办法将它直接 POST/PUT 到 S3?还是我有必要这样做:
# download the file
requests.get(url, stream=True)
# save the file locally
# upload the local file to S3
s3.upload_file()
如果有办法将其直接上传到 S3(无需下载并重新上传到 S3),我该怎么做?
【问题讨论】: