I was trying to upload videos from my phone to the server. After a while when i tried uploading video which were in my SD card then it failed. After some research i came to know when i was selecting video from sd card i got the response as null. I did not found solution else where. Can someone help? Following is my code
const options: CameraOptions = {
quality: 80,
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
mediaType: this.camera.MediaType.VIDEO,
destinationType: this.camera.DestinationType.FILE_URI
};
this.camera.getPicture(options).then((videoUrl) => {
console.log('Vid Url', videoUrl); // This returns null when selecting from SD Card
});