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 6C0727E1C for ; Thu, 15 Dec 2011 22:26:01 +0000 (UTC) Received: (qmail 72370 invoked by uid 500); 15 Dec 2011 22:26:01 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 72346 invoked by uid 500); 15 Dec 2011 22:26:01 -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 72338 invoked by uid 99); 15 Dec 2011 22:26:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 22:26:01 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 22:25:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 015B111576D for ; Thu, 15 Dec 2011 22:25:31 +0000 (UTC) Date: Thu, 15 Dec 2011 22:25:30 +0000 (UTC) From: "Bennet Huber (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <2100016838.17268.1323987931007.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <585779756.20917.1322537027848.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-74) Add ContentLength Header in Upload request 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-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170533#comment-13170533 ] Bennet Huber commented on CB-74: -------------------------------- As a workaround, I've found there's an undocumented argument you can set on the options that fixes this: var ft = new FileTransfer(); //Set more stuff here... var opts = {}; opts.chunkedMode = false; ft.upload(fileURI, serverURL, onSuccess, onFail, opts); This somehow magically makes Android set the content length for the POST request, I'm not entirely sure why though. Found the fix on http://www.countermarch.com/blog/index.cfm/2011/10/27/PhoneGap-FileTransfer-and-ColdFusion > Add ContentLength Header in Upload request > ------------------------------------------ > > Key: CB-74 > URL: https://issues.apache.org/jira/browse/CB-74 > Project: Apache Callback > Issue Type: Bug > Components: Android, BlackBerry, iOS > Affects Versions: 1.1.0 > Reporter: Simon MacDonald > > Some servers require a ContentLength on POST requests. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira