After having decided to use as PhoneGap API for the development of a small application, I tried to access the gallery of the phone to set up a system to upload files to my server.
Unfortunately, when I go to the gallery, the pictures are only available …
Is there a way to access the video and send to the server, or another API who change HTML code in native app ? Or should I use a service for sending mail.
If yes, what is the name of this service?
Thanks to @ghostCoder
Just one correction, to be true :
navigator.camera.getPicture(successFn, errorFn, { quality: 50,
destinationType: this.photoDestinationType.FILE_URI,
sourceType: source,
mediaType: navigator.camera.MediaType.ALLMEDIA });
mediaType: this.fileMediaType.ALLMEDIA
replace by
mediaType: navigator.camera.MediaType.ALLMEDIA
yes u can upload videos too.
use this
this will open up gallery where u can choose a video too.
then u can upload it using