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 E2F7F9CBD for ; Fri, 20 Apr 2012 04:58:00 +0000 (UTC) Received: (qmail 1239 invoked by uid 500); 20 Apr 2012 04:58:00 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 1213 invoked by uid 500); 20 Apr 2012 04:58:00 -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 1187 invoked by uid 99); 20 Apr 2012 04:57:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 04:57:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Fri, 20 Apr 2012 04:57:56 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D9D603A4B7D for ; Fri, 20 Apr 2012 04:57:36 +0000 (UTC) Date: Fri, 20 Apr 2012 04:57:36 +0000 (UTC) From: "Richard Kimber (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1157021677.8664.1334897856894.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <858394021.7605.1334870680447.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258018#comment-13258018 ] Richard Kimber commented on CB-543: ----------------------------------- I can confirm that specifying all options does resolve the issue. Thanks for looking at the issue so quickly @Shazron. > FileTransfer.upload WebKit discarded an uncaught exception > ---------------------------------------------------------- > > Key: CB-543 > URL: https://issues.apache.org/jira/browse/CB-543 > Project: Apache Callback > Issue Type: Bug > Components: iOS > Affects Versions: 1.6.1 > Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1 > Reporter: Richard Kimber > Assignee: Shazron Abdullah > Priority: Critical > Fix For: 1.7.0 > > > Unable to upload file to server using FileTransfer.upload. > The following code: > var onSuccess, onError; > options.destinationType = Camera.DestinationType.FILE_URI; > onSuccess = function(imageURI) { > Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")"); > app.views[name + "Form"].imageURI = imageURI; > }; > > onError = function(message) { > console.log(message); > Ext.Msg.alert("Camera", "There was a problem with the camera."); > }; > navigator.camera.getPicture(onSuccess, onError, options); > ---- > var options = new FileUploadOptions(); > options.fileKey = "repair[image]"; > options.params = fix_form_names(form.getValues()); > var ft = new FileTransfer(); > ft.upload(form.imageURI, form.url, win, fail, options, true); > Returns the following error: > *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4) > This code was working on PhoneGap 1.4.1. > Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o -- 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