You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vishal Mishra (JIRA)" <ji...@apache.org> on 2017/11/22 00:21:00 UTC

[jira] [Closed] (CB-11118) Array and object params on upload ignored in ios

     [ https://issues.apache.org/jira/browse/CB-11118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vishal Mishra closed CB-11118.
------------------------------
    Resolution: Won't Fix

> 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: cordova-plugin-file-transfer (DEPRECATED)
>    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.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org