I have this code that saves the images taken from the ionic camera, but now how do I get the url and save it in firebase cloud
async create() {
this.imagesArray.forEach(image => {
firebase.storage().ref(`images/${Date.now()}.jpg`)
.putString(image, firebase.storage.StringFormat.DATA_URL);
});
const { name, data } = this.form.value;
const new = {
name:name,
data: data
}
this._firestore.addDocument('new', new).then((data) => {
});
});
}
By clicking on create it only saves the data of the forms and the images taken from the camera in firestore, what I want is to obtain the url and save it in the cloud of firestore along with the other data.
Everything else works fine, I just want to get the url of the images saved in firestore, I clarify that they are taken with the ionic camera, I am using ionic and angular.