Help with policy / ACL

Amazon S3 upload add-on.
Post Reply
j_n
Posts: 6
Joined: Wed Jun 30, 2010 5:35 pm

Help with policy / ACL

Post by j_n »

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!

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Help with policy / ACL

Post by support »

Does "CanonicalUser" require multipart field to be passed as for ACL in HTTP POST?
If not then it should work. We've have the check S3 API to make sure.
Could you contact support(at)jfileupload(dot)com about this issue?

j_n
Posts: 6
Joined: Wed Jun 30, 2010 5:35 pm

Re: Help with policy / ACL

Post by j_n »

I don't know... I find the API very confusing to be honest. I've done tons of research and I can't find this specific issue addressed anywhere.

I've just sent the email, I'll post any replies here...

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Help with policy / ACL

Post by support »

I'm not sure we can pass grantee id in ACL with HTTP POST.

Post Reply