FileTransferError {
code = 3;
"http_status" = 0;
source = "file://localhost/var/mobile/Applications/AAA7A602-61F1-46B2-BD2E-960E446AD4A0/tmp/cdv_photo_009.jpg";
target = "https://api.parse.com/1/files/cdv_photo_009.jpg";
}
2012-11-23 21:38:20.430 filexferparse[13563:907] File Transfer Error: request body stream exhausted
Any ideas?
var params = {};
params.headers={'headerParam':'headerValue'};
options.params = params;
// Look for headers on the params map for backwards compatibility with older Cordova versions.
final JSONObject headers = args.optJSONObject(8) == null ? params.optJSONObject("headers") : args.optJSONObject(8);
I bet you didn't find it. The first comparison against null will fail. You see when the arguments are stringified on the JS side the null will become a "null". So there needs to be a comparison against the string "null" and not the null value.
Bugs filed:
https://issues.apache.org/jira/browse/CB-1935
https://issues.apache.org/jira/browse/CB-1936
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
To compile in the cloud, check out build.phonegap.com