简体   繁体   中英

Notification whenever a new entry is made to the firebase storage

So, I am working on a website and i want to implement something. I am using firebase to send normal html form stuff to the firebase database, One page has a form which also has a an attachment option where the user has to put in his resume, I am able to send the pdf file to the firebase storage but i want that the owner of the site/admin is notified whenever somebody new registers is there any way i can implement this by either sending the owner an email that somebody applied/registered if yes please guide me or some resources to do the same and also if this can be done by firebase itself or i have to do something with the third party.

If you are working with a front-end app only (eg a React app or similar), and don't have a back-end, I would suggest you use Firebase Cloud Functions for this.

You can make a Cloud Function that runs every time a file is added to Firebase Storage. There's an example of such a function in the examples repository here . This particular function generates a thumbnail for images, but you can look through it and get an idea of how the functions work with Storage triggers.

You can then look at another example which sends emails, like this one and hopefully you will have a pretty good idea of what you need to do.

More info on Cloud Functions triggered by Firebase Storage can be found here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM