Ionic, Upload Image Or String To Firebase Not Working On Android, But Working In Browser And Ios
since about 3 days I am trying to upload an image to the firebase storage without success. I tried several approaches I found here in stackoverflow. It is even not possible to uplo
Solution 1:
The function added below can help you to add an image on firebase where(file is the image you wish to add ).
$scope.addImage = function(file){
var fileRef = storageRef.child(file.name);
fileRef.put(file).then(function (snapshot) {
console.log(snapshot)
});
};
Post a Comment for "Ionic, Upload Image Or String To Firebase Not Working On Android, But Working In Browser And Ios"