Reputation: 132
Is it possible to set custom metadata to a file using when writing to a signed url? I tried adding a 'x-goog-meta-mything' but it didn't work. I'm using the node client lib.
Update to be clearer:
Setting the header doesn't seem to be an issue, but when creating the signed URL I have to know the value of the meta-data ahead of time, which isn't useful. I.E. I have x-goog-meta-deltachanges
and it could be a number any where between 1 and many thousands. In my signedUrl I have to set x-goog-meta-deltachanges:1,2,3,4,5,6...
and it doesn't seem like a good idea.
Upvotes: 7
Views: 3218
Reputation: 1743
As far as the Signed URLs docs go, it should be.
Have you set the Canonical extension headers bit as needed?
I mean, you need to both include the x-goog-meta-mything:VALUE
in the StringToSign
, and you need to then send the same x-goog-meta-mything:VALUE
header in the PUT
request.
Have you done this, is it not working?
Upvotes: 6