Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi How to choose any type of files from mobile devices (Android,ios,windows),Currently i can choose only .jpg file only.i never pass mime type,but still allow to choose .jpg file only.

What I have tried:

I am using this code to choose file

JavaScript
navigator.camera.getPicture(
                    uploadPhoto,
                    function (message) {
                        kendo.mobile.application.hideLoading();
                        $("#ErrorDiv").text("Failed to get a picture. Please select one.");
                    }, {
                        quality: 50,
                        destinationType: navigator.camera.DestinationType.FILE_URI,
                    sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
                        // sourceType: navigator.camera.PictureSourceType.SAVEDPHOTOALBUM 
                    });


This code only allow to choose image file only,but i want to any type of file from mobile devices,like from sd ,internal card,google drive,Downloads etc.

Regards
Aravind
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900