June 2018
Beginner to intermediate
394 pages
9h 2m
English
When we upload files to Cloud Storage, we can trigger functions while we are uploading, updating, or deleting files. There are different trigger functions inherited by functions.storage to create functions for handling cloud storage events. Targeting on specific Cloud Storage Bucket and default bucket can be done as follows:
exports.thumbnail = functions.storage.object().onChange(event => { // ...});
This code is scoped to the default bucket. Storage and also supports change events; for instance, if there are any changes, such as uploading, ...
Read now
Unlock full access