Reputation: 856
Background: In Google Cloud Storage I generate a Signed URL and use it to upload an object. I also have Object Change Notifications set up.
Question: Is there a way to set some custom headers when uploading an object via the Signed URL which will then be delivered in the request of the servlet which the Object Change Notification is posted to?
Upvotes: 1
Views: 523
Reputation: 67163
You can add key/value pairs to the metadata
property of object metadata on upload:
https://cloud.google.com/storage/docs/json_api/v1/objects#resource-representations
When the object change notification is delivered, the object's metadata will contain your custom metadata entries.
Upvotes: 1