Sitefinity / amazon-s3-provider

Amazon S3 provider for Sitefinity
8 stars 9 forks source link

Upload gets Access Denied #6

Closed VesselinVassilev closed 9 years ago

VesselinVassilev commented 9 years ago

I am sure I have put the correct Access key and secret key and the correct Region Endpoint, but the transferUtility.Upload method always returns 403 Access Denied.

When I use the same access key and secret key in CloudBerry I can successfully upload an image, so it is definitely not permissions related.

I also tried using the later version of the AWSSDK - 2.3.50.0, but with the same result.

Any ideas?

VesselinVassilev commented 9 years ago

The way to make it work was to remove every occurrence of this:

CannedACL = S3CannedACL.PublicRead

That way I no longer got the Access Denied and the good thing is that the files do have PublicRead after the upload, which is great.