вот правильное использование:
mediaType: this.camera.MediaType.PICTURE
let options: CameraOptions = {
quality: 50,
destinationType: this.camera.DestinationType.FILE_URI,
sourceType:this.camera.PictureSourceType.PHOTOLIBRARY,
allowEdit: false,
mediaType: this.camera.MediaType.PICTURE,
saveToPhotoAlbum: false};
this.camera.getPicture(options)
.then((videoUri)=> {
window.resolveLocalFileSystemURL(videoUri, function (fileEntry) {
fileEntry.file(function (fileObj) {
this.auth.presentAlert(fileObj)
this.startTransfering(fileObj) ;
console.log("Size = " + fileObj.size);
});
});
},
(err)=> {
this.auth.presentAlert(err) ;
}) ;