Thuruv / awspylib

Automatically exported from code.google.com/p/awspylib
0 stars 0 forks source link

No ability to set ACLs #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Need the ability to specify ACLs on keys. I simply modified s3_util.py as
follows:

def put_object_from_file (self, fileName, **headers):
def _stream_data_from_file_(self, fileName, headers = None):
    if not headers: headers = {}

and call as follows:
k.put_object_from_file(f, x-amz-acl="public-read")

steve@citrus.com.au

Original issue reported on code.google.com by stephen.mc on 1 Oct 2008 at 6:08

GoogleCodeExporter commented 9 years ago
above actually needs to be:

k.put_object_from_file(f, **{"x-amz-acl": "public-read"})

Original comment by stephen.mc on 29 Oct 2008 at 12:29