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

ASF GitHub Bot commented on CB-11118:
-------------------------------------

GitHub user andrewgaun opened a pull request:

    https://github.com/apache/cordova-plugin-file-transfer/pull/143

    CB-11118: Add support for Array and Object params in iOS

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andrewgaun/cordova-plugin-file-transfer master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-file-transfer/pull/143.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #143
    
----
commit 2236a489e698b66bde567c1a8ce8b51501e3a7ef
Author: Andrew Gaun <[email protected]>
Date:   2016-04-20T18:24:42Z

    CB-11118: Add support for Array and Object params in iOS

----


> Array and object params on upload ignored in ios
> ------------------------------------------------
>
>                 Key: CB-11118
>                 URL: https://issues.apache.org/jira/browse/CB-11118
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>    Affects Versions: 1.5.0
>         Environment: iOS
>            Reporter: Andrew Gaun
>              Labels: easyfix, iOS, triaged
>
> On iOS, CDVFileTransfer.m the method requestForUploadCommand will only allow 
> params objects with selector stringValue and NSString to be included with the 
> request. 
> On Android objects and arrays are turned into strings when used as params
> Example:
> {code:javascript}
>   var fileUploadOptions = new FileUploadOptions();
>   fileUploadOptions.params = {
>     "array": [1,2,3],
>     "object": { 
>       "a": 1
>     },
>     number: 123
>   }
> {code}
> will return from iOS
> {code:javascript}
>   {
>     number: '123'
>   }
> {code}
> and from android
> {code:javascript}
>   {
>     array: '[1,2,3]',
>     object: '{"a":1}',
>     number: '123'
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to