April 2018
Intermediate to advanced
284 pages
6h 43m
English
To download a file, you will need to get a reference to that file using either https:// or gs:// URL of the file, or you can construct it by appending child paths to the storage root.
The next code snippet shows these methods:
var storage = firebase.storage();var pathReference = storage.ref('images/stars.jpg');// Create a reference from a Google Cloud Storage URIvar gsReference = storage.refFromURL('gs://bucket/folder/file.jpg')// Create a reference from an HTTPS URL// Note that in the URL, characters are URL escaped!var httpsReference = storage.refFromURL('https://firebasestorage..../file.jpg')
We will extend our HelpDesk application to allow the user to view the snapshot for a ticket if uploaded any. You will need to update ...