Access denied problem drives me nuts

Amazon S3 upload add-on.
Post Reply
mliga
Posts: 2
Joined: Thu May 14, 2009 9:06 pm

Access denied problem drives me nuts

Post by mliga »

I have a access denied problem with a signed policy.
These are my params

Code: Select all

document.writeln('<PARAM NAME="param2" VALUE="s3bucket">');
document.writeln('<PARAM NAME="value2" VALUE="bigfilesit">');
document.writeln('<PARAM NAME="param3" VALUE="awsaccesskeyid">');
document.writeln('<PARAM NAME="value3" VALUE="----">');
document.writeln('<PARAM NAME="param4" VALUE="s3policy">');
document.writeln('<PARAM NAME="value4" VALUE="---">');
document.writeln('<PARAM NAME="param5" VALUE="s3signature">');
document.writeln('<PARAM NAME="value5" VALUE="---">');
document.writeln('<PARAM NAME="param6" VALUE="account">');
document.writeln('<PARAM NAME="value6" VALUE="dispari">');
document.writeln('<PARAM NAME="param7" VALUE="s3acl">');
document.writeln('<PARAM NAME="value7" VALUE="public-read">');
and this is the policy I generate:

Code: Select all

{
  "expiration": "2010-06-15T12:00:00.000Z",
  "conditions": [
    {"bucket": "bigfilesit" },
    {"acl": "public-read"},
    ["starts-with", "$key", ""],
    ["starts-with", "$Content-Type", ""]
  ]
}
the upload occurs, I can download the files with a client, but any access via web gives me something like:

Code: Select all

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>E1A3A7423A072761</RequestId>
<HostId>
NrVJfkIk540IVYTdmkYW581an6OurQUGg7QN2iNgTZDThzZbpN2UJs/ZjXsagzl0
</HostId>
</Error>
(numers change every time).
Please note, the account parameters is changed every time from js.

Where's the pink elephant i'm missing?

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

Re: Access denied problem drives me nuts

Post by support »

What is the value of "mode" parameter:
<PARAM NAME="mode" VALUE="jfileupload.transfer.client.s3.rest.PUTUploadTransfer">
or
<PARAM NAME="mode" VALUE="jfileupload.transfer.client.s3.rest.POSTUploadTransfer">
?

Also, are you sure about your bucket name ? Another customer had the same problem as you because he had the wrong bucket name. Are you able to browse your bucket with JS3Explorer:
http://www.jfileupload.com/products/dem ... lorer.html

mliga
Posts: 2
Joined: Thu May 14, 2009 9:06 pm

Re: Access denied problem drives me nuts

Post by mliga »

The mode is correct, and I see the file with s3explorer.
I found that if I try to access the file with the domain I use for my app (I set up a CNAME) iI get access denied, while using the amazon url bigfilesit.s3.amazonaws.com, it let me download, so the problem is not due to the applet, but something is wrong with my CNAME setup.

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

Re: Access denied problem drives me nuts

Post by support »

Ok, but you've tried to setup a CNAME in applet parameter ?

hffpsem
Posts: 1
Joined: Tue Mar 13, 2012 9:15 am

Re: Access denied problem drives me nuts

Post by hffpsem »

happy to see this site!


--------------------------------------------------------------------
Cheap Nike shox shoes 2012|christian louboutin boots|cheap Louis vuitton handbags

Post Reply