Is it possible to scope Firebase functions to a folder inside a storage bucket?

前端 未结 4 910
失恋的感觉
失恋的感觉 2020-12-07 00:59

I have tested Firebase functions for storage successfully. However, I havn\'t seen anywhere a hint how to only invoke the function when a file is added into a folder inside

4条回答
  •  醉梦人生
    2020-12-07 01:33

    You can listen to a specific path with

     exports.generateThumbnail = functions.storage.object('profile').onFinalize(async object => {
    
    })
    

提交回复
热议问题