0
我正尝试使用boto api将照片上传到Amazon S3。如果我没有指定Canned ACL,我可以成功上传照片。尝试使用特定的Canned ACL时遇到错误
但是,如果我指定ACL如下。我得到了以下错误。
mp = self._bucket.initiate_multipart_upload(name)
pool = Pool(processes=self.NUM_PARALLEL_PROCESSES)
pool.apply_async(mp.upload_part_from_file(fp=buffer, part_num=counter, headers=headers, policy='public-read'))
错误如下。
<Error><Code>InvalidArgument</Code><Message>The specified header is not valid in this context</Message><ArgumentValue>public-read</ArgumentValue><ArgumentName>x-amz-acl</ArgumentName><RequestId>xxx</RequestId><HostId>xxx</HostId></Error>
我试了很久,但仍然没有得到任何提示。有人知道为什么
谢谢!
是的。这很混乱。我发现,博托也没有太多的文档可用。 – Chris