Nishchal Dinesh
Nishchal Dinesh

Reputation: 163

Invoking application API on file change in Storage bucket

I have a requirement where-in.

  1. A file will be uploaded to Google storage bucket.
  2. On file change we have to invoke an API with the file name which got uploaded.

How this can be achieved.? I went through Google pub/sub or cloud functions didn't get much.

Upvotes: 0

Views: 138

Answers (1)

Eduardo Ortiz
Eduardo Ortiz

Reputation: 761

You should add the Object Finalize event. This event triggers when a new object is created in the bucket (or an existing object is overwritten, and a new generation of that object is created).

You can read more about this topic in this link.

Upvotes: 1

Related Questions