incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McKamey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1015) File Upload does not send additional fields
Date Mon, 09 Jul 2012 19:35:34 GMT

    [ https://issues.apache.org/jira/browse/CB-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409771#comment-13409771
] 

Stephen McKamey commented on CB-1015:
-------------------------------------

For the record, the pull request from @eschultz seems to do the trick for me. Thx.
                
> File Upload does not send additional fields
> -------------------------------------------
>
>                 Key: CB-1015
>                 URL: https://issues.apache.org/jira/browse/CB-1015
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0
>         Environment: iOS 5.1.1
>            Reporter: Stephen McKamey
>            Assignee: Herm Wong
>            Priority: Blocker
>              Labels: file_upload, upload
>
> Similar code using the pattern below used to work in previous versions. Trying to upgrade
to the latest and noticed this issue. Cannot seem to work around it. The file binary posts
fine but there are no additional fields despite the options object specifying 'params':
> 	var options = new FileUploadOptions();
> 	
> 	options.fileKey = 'file';
> 	options.fileName = imageURI;
> 	options.mimeType = 'image/jpeg';
> 	
> 	options.params = {
> 		key1: 'value1',
> 		key2: 'value2'
> 	};
> 	
> 	new FileTransfer().upload(
> 		imagePath,
> 		remoteURL,
> 		successFn,
> 		errorFn,
> 		options);
> This currently prevents upload to any server which requires a single multipart body.

--
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

        

Mime
View raw message