Creating file storage references
As you can see, everything we do in Firebase starts with creating a reference. That way, we can have a well managed and separated workflow across the different parts of our apps.
Getting ready
Before getting started with the code we need to confirm the presence of the following configuration:
- That you have a Firebase project, and you've properly configured it, if this is not the case, please check Chapter 1, Firebase - Getting Started, for that.
- you need to make sure that the "storageBucket" field is present with its bucket link, this one will be the place where all your files will live underneath.
How to do it...
If you followed the steps in Chapter 1, Firebase - Getting Started, you will have an idea of how we can integrate Firebase into our workflow.
- We're going to assume that we're in a web workflow. So this recipe will demonstrate the basic steps of having references in Firebase Storage using the following code snippet:
//Creating a reference that point...