I am developing an Android application using phonegap and I need to know how upload a file (images and videos) through JavaScript.
Can anybody help me with this?, give me any idea or something..
The application consume WCF Rest web services.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the filetransfer API – http://docs.phonegap.com/en/1.0.0/phonegap_file_file.md.html#FileTransfer should do the trick 🙂
Edit –
To use the filetransfer you would do something like this..
Make sure you’re defining the fileURI. On your server you would be looking for a post with a name of “photo” or what ever you call the fileKey.