In the preceding code, we did the following :
- Grabbed a reference for our file. (Don't forget to have an active reference, a file selection, or something similar so you can have the active reference.)
- After getting the reference, we called for the API to get the download URL. This can be exploited over the image source in case the file was an image. You can even use fetch to download it locally, so the possibilities are endless here.