Hi I’m trying to take a picture and store it in Parse. My code is:
function UploadPhoto(){
Camera.takePicture({ targetWidth: 640, targetHeight: 360, correctOrientation: true}).then(function(file)
{
module.exports.imageFile.value = file;
var newFoto = new ParseFotos();
var parseFile = new Parse.File(file.name, file);
parseFile.save({success: function(results){
idFoto = results.id;
newFoto.set("Foto", parseFile);
newFoto.save();
}, error: function(){
//
}
});
});
}
When I take the photo the app show the image but in parse the file is empty… In previous version of Fuse this work fine. (Now I’m working with 0.8.4)
Thanks!