I am not able to upload the image captured by phone in phone-gap android version. for iOS, it's working fine, but same code not working for android version using phone gap
I am getting 200 response code, but no "success" response from the server.
I am using cordova-1.7.0.js and the target SDK is Android 2.1.
Here is the sample code:
function imageUpload(imageURI)
{
var options = new FileUploadOptions();
options.fileKey="image";
options.fileName=imageURI.substr(imageURI.lastIndexOf('/')+1);
options.mimeType="image/jpeg";
var params = new Object();
var msg="test message";
var token= "test token";
params.message = msg;
params.access_token = token;
options.params = params;
var ft = new FileTransfer();
ft.upload(imageURI, "http://mydomain.info/demo/upload.php", win, fail, options,false);
}