The problem you have is that the file was upload with PRIVATE access. Which by default is good. However you will want to enable it for public read access:

  http://openbd.org/manual/?/amazon_s3

Take a look at this function to make it publicly available:

  http://openbd.org/manual/?/function/amazons3setacl

Craig328 wrote:
Hey all:

I have a quick (and hopefully not too dumb) question about using
Amazon's S3 service vis-a-vis OpenBD.

I've been able to successfully get a file up to my bucket on Amazon
just fine.  I'm uploading images for a site (rather than storing the
images myself as there could be quite a few) and now I need only to
retrieve the URL for the newly uploaded file so I can use it as the
image src attribute.  I was on my AWS Management Console and saw the
file arrive and when I clicked on the image properties, the link in
the details tab was displayed.  However, copying and pasting that link
into a browser came back with an XML document response saying "access
denied".

I'm sure there's a way to set the access level but it's eluding me.
Any tips, guidance or pointers in the right direction would be greatly
appreciated.

Thanks in advance!

Craig


--
official tag/function reference: http://openbd.org/manual/
mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to