In my code i have tried to upload file from gallery. For that i have used camera plugin and tried to allow only less than 50MB files. Is there any way to restrict the file size while browse from gallery. Below is my code.
this.camera.getPicture({
quality: 50,
destinationType: this.camera.DestinationType.FILE_URI, // <== try THIS
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
mediaType: this.camera.MediaType.VIDEO,
}).then((imageData) => {
}, (err) => {
console.log(err);
});