title: How to upload image to firebase storage and save reference in the database in single transaction?
body: <p>I would like to upload image to firebase storage and save link to it in the firebase database. Saving link to database can fail for whatever reason and then I have unused, unlinked image in the storage. Is it possible to somehow ensure that after upload link to the image is saved in the database? </p>