Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8DBABD2F4 for ; Fri, 5 Oct 2012 15:12:06 +0000 (UTC) Received: (qmail 24052 invoked by uid 500); 5 Oct 2012 15:12:06 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 24009 invoked by uid 500); 5 Oct 2012 15:12:06 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 23842 invoked by uid 99); 5 Oct 2012 15:12:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 15:12:06 +0000 Date: Fri, 5 Oct 2012 15:12:05 +0000 (UTC) From: "Andrea Casarella (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1889435515.1202.1349449926016.JavaMail.jiratomcat@arcas> In-Reply-To: <64936074.69.1349430063941.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CB-1592) PhoneGap 2.0 FileTransfer upload - Additional parameters aren't send to server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470381#comment-13470381 ] Andrea Casarella commented on CB-1592: -------------------------------------- I've found the problem. It was a problem on my server. Sorry. > 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 > Components: iOS > Affects Versions: 2.0.0, 2.1.0 > Environment: Macosx - phonegap 2.1 - xcode > Reporter: Andrea Casarella > Assignee: Andrew Grieve > Priority: Minor > > 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