Help with policy / ACL
Posted: Wed Aug 25, 2010 2:59 pm
I'm trying to make files uploaded via JS3Upload readable by a canonical ID... I'd prefer for now not to create a bucket policy, and just use JS3Upload to set the correct permissions. Is this even possible?
I've tried this:
{
"expiration": "2015-06-15T12:00:00.000Z",
"conditions": [
{"bucket": "BUCKET_GOES_HERE" },
{"acl": "READ_ACP" },
{"CanonicalUser": "CANONICAL_ID_GOES_HERE" },
["starts-with", "$key", ""],
["starts-with", "$Content-Type", ""]
]
}
But it's not working... there really isn't much documentation out there for this type of thing. Can someone make a suggestion?
Thank you!
I've tried this:
{
"expiration": "2015-06-15T12:00:00.000Z",
"conditions": [
{"bucket": "BUCKET_GOES_HERE" },
{"acl": "READ_ACP" },
{"CanonicalUser": "CANONICAL_ID_GOES_HERE" },
["starts-with", "$key", ""],
["starts-with", "$Content-Type", ""]
]
}
But it's not working... there really isn't much documentation out there for this type of thing. Can someone make a suggestion?
Thank you!