Hi Marc,
Thanks for the response. Ironically, that StackOverflow is mine from
a previous issue with the same project. I suppose it may shed some
more light on my experience, though.
So, it sounds like I'm back at square one. If I'm understanding you
correctly, my policy document is correct, even with the "$key"
format. So any suggestions on what to change there?
I realize that this certainly is an issue on my side and not yours,
because I can upload from a regular HTTP form, but I haven't got a
clue what I'm doing wrong uploading from Node.js.
Thank you,
Joe
> In a policy document, the name "key" (or "bucket" or "acl", etc.) should be
> used without the dollar sign when you're specifying a field name, like this:
>
> {"key": "travel-maps"},
>
> However, when using a field name as part of a pattern matching element
> (e.g., "eq" or "starts-with") you should include the dollar sign prefix,
> like this:
>
> ["starts-with", "$key", "travel"],
>
> So your original use of $key was correct (sorry for confusing you). Btw,
> for others interested in this subject, there's a parallel conversation on
> this topic here on
>
stackoverflow.com<
http://stackoverflow.com/questions/10032567/generate-google-cloud-sto...>,
> which has additional details and some sample code.
>
> Marc
>
>
>
>
>
>
>
> On Mon, Apr 9, 2012 at 12:33 PM, Joseph Wegner <
j...@wegnerdesign.com> wrote:
> > Marc,
>
> > I attempted that change, but I'm now getting the error:
>
> > "The content of the form does not meet the conditions specified in the
> > policy document.</Message><Details>Policy did not reference these
> > fields: key"
>
> > I don't see how that could be possible, as the key field's condition
> > is simply that it starts with blank, so it should always pass.. I
> > thought?
>
> > Also, the example provided in Google's documentation uses "$key",
> > instead of "key".
> >
https://developers.google.com/storage/docs/reference-methods#policydo...