Andrea Casarella created CB-1592: ------------------------------------ Summary: PhoneGap 2.0 FileTransfer upload - Additional parameters aren't send to server Key: CB-1592 URL: https://issues.apache.org/jira/browse/CB-1592 Project: Apache Cordova Issue Type: Bug Affects Versions: 2.0.0, 2.1.0 Environment: Macosx - phonegap 2.1 - xcode Reporter: Andrea Casarella
function uploadImage(){ var url = webServiceURL + "some-page.html;jsessionid="+$("#jsessionId").val(); var imgURI = $("#imageToUpload").attr("src"); console.log('Image Uri to Upload - '+imgURI); var options = new FileUploadOptions(); options.fileKey="formFile"; options.fileName= $("#fileName").val(); options.mimeType="image/jpeg"; var params = new Object(); params.pid = '123456'; params.json = 'true'; params.upload = 'true'; options.chunkedMode = false; options.params = params; var ft = new FileTransfer(); ft.upload(imgURI, encodeURI(url), uploadSuccess, uploadError, options, true); return false; } Always Same error: FileTransferError { code = 3; "http_status" = 403; source = "http://..."; // target = "file://localhost/..."; } and thats correct bacause my server needs the parameters (pid, json,upload), but it seems that are not passed anymore. I've tried also to set the "headers" as suggested for IOS quirks, but no changes. Any solution? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira