Alan, thanks very much for pointing out the AmazonS3SetAcl function.
That indeed was what was needed.  WARNING: VENT APPROACHING

Okay, after much profanity and hair pulling (my own) I finally figured
out what was wrong.  The OpenBD documentation for that function REALLY
needs to define what they mean by "key" as in the attribute value
you're expected to pass in.  Once you figure it out, it seems really
obvious but for crissake, the word "key" is used all over the friggin'
place between Amazon and the OpenBD documentation. Nowhere did it say
that in the case of this function, "key" means "the bucket's folder/
filename".  Once you try THAT, oh hey look, it works.  The folder/
filename is NOT a key...at least not when you're juggling an Amazon
Access Key with an Access Key ID and a Secret Access Key and then the
OpenBD function that deals with the Amazon S3 service calls the
function parameter a "key" as well...when it's clearly not a key.

Sorry, I needed to vent on that somewhat as I burned hours trying to
puzzle this out.  A single real world example or even a definition of
what a "key" is for this function would have solved a lot of
problems.  By no means am I the brightest person in the world but this
one is needlessly vague...and it's such a cool function.

I love me some OpenBD but damn, the documentation can sometimes be
downright awful and I'm posting it here because Google will have this
comment in their search database within hours.  Nobody else needs to
go through that vague business just to use the function.

Again though, thanks very much for the pointer.  I now need a
beer.  :)

On Mar 2, 1:25 pm, Alan Williamson <[email protected]> wrote:
> 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