incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejaswi Puthraya (JIRA)" <>
Subject [jira] [Created] (CB-1028) FileTransfer.upload WebKit discarded an uncaught exception
Date Wed, 11 Jul 2012 04:24:36 GMT
Thejaswi Puthraya created CB-1028:

             Summary: FileTransfer.upload WebKit discarded an uncaught exception
                 Key: CB-1028
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.6.1
         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
            Reporter: Thejaswi Puthraya
            Assignee: Shazron Abdullah
            Priority: Critical
             Fix For: 1.7.0
         Attachments: phonegap_snippet.html

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) {
		Ext.Msg.alert("Camera", "There was a problem with the camera.");
	};, 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: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds

This code was working on PhoneGap 1.4.1.

Further reports at!topic/phonegap/w8SOE5IEr9o

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message