S3 access private images

Hi there.

I've connected to a S3 bucket and can get info with df api.

My problem is when I get the source of the images and try show them it gives me access denied because the bucket is private.

What Am I missing in my S3 bucket config?

Thank you.

I’ve already logged to S3 through dreamfactory and angularjs. I can get images within a folder and log their paths, but when I try to show them within an img tag it keeps telling me 403 (Forbidden).

Any ideas?, thank you.

I know I can set bucket policy to allow only certain domains to access the content (example.com), but I’m trying to use it with phonegap, any hints?

I will check with our engineers to see if anyone has hints for you on displaying images from S3 via AngularJS. In the meantime, what is being logged in your DSP’s logs when you make these API calls and get 403 responses? Are you able to access these images via the API Docs? Are you able to access some files and not others, or files in some buckets but not other buckets?

Hello Jeffrey, yes as you pointed I get all I need with the API but not when I try to use the urls in the html.

I’m sorry that I don’t have the necessary experience implementing in AngularJS to assist you further. This is beyond the scope of DSP itself, but I’d still like to help. One of our engineers had used PhoneGap in the past, and recalled something about whitelisting an external site before you can use it. Perhaps these links will help:

http://stackoverflow.com/questions/9889872/display-an-image-from-external-url-using-phonegap-jquery-for-android

http://docs.phonegap.com/en/1.9.0/guide_whitelist_index.md.html