How do I access Firebase storage from within a Database-triggered Cloud Function?

Viewed 2351

I would like to perform file manipulation using firebase cloud functions by listening to an event triggered by functions.database.ref().onWrite() (instead of functions.storage.object().onChange()).

I noticed most of the sample using cloud functions functions.storage.object().onChange() to trigger a cloud functions for file manipulation. Is there a way to get a storageRef from within functions.database.ref() and perform file manipulation from there?

1 Answers
Related