I have been trying to upload a (zip) file to a remote server programmatically using Phonegap in Android mobile. I have tried the FileAPI documentation and the solution found here. But it doesn’t seem to work. However I could successfully upload an image (using the camera and navigator) as described in the examples.
I have a file test.zip in a folder test in the SD Card. I need to upload this file to a remote server.
Any help regarding this would be great.
I got it working, here is the code that I used