Hi all
I have a problem to upload an image in firebase.
I select an image and later I upload to firebase, in Android works well but in iOS, the image have 0 bytes.
Why?
context
.authorize()
.then(function()
{
return context.present();
})
.then(function(selection)
{
selection.forEach(function(selected)
{
var logoPath = appPath + selected.ios;
var childRef = storageRef.child(namefile);
childRef.put(fs.File.fromPath(logoPath)).then
(
uploadedFile =>
{
//HERE I Upload the file.
}
,error =>
{
console.log("firebase.doWebUploadFile error: " + error);
}
);
});
}).catch(function (e) {
console.log(e);
});
Thanks
Hi all
I have a problem to upload an image in firebase.
I select an image and later I upload to firebase, in Android works well but in iOS, the image have 0 bytes.
Why?
context
.authorize()
.then(function()
{
return context.present();
})
.then(function(selection)
{
selection.forEach(function(selected)
{
var logoPath = appPath + selected.ios;
var childRef = storageRef.child(namefile);
childRef.put(fs.File.fromPath(logoPath)).then
(
uploadedFile =>
{
//HERE I Upload the file.
}
,error =>
{
console.log("firebase.doWebUploadFile error: " + error);
}
);
});
}).catch(function (e) {
console.log(e);
});
Thanks