You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Lorin Beer (JIRA)" <ji...@apache.org> on 2013/11/21 02:02:13 UTC

[jira] [Resolved] (CB-2893) Blackberry Playbook - FileTransfer - Upload function doesn't work correctly

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

Lorin Beer resolved CB-2893.
----------------------------

    Resolution: Fixed

issue concerns a deprecated platform, closing.

> Blackberry Playbook - FileTransfer - Upload function doesn't work correctly
> ---------------------------------------------------------------------------
>
>                 Key: CB-2893
>                 URL: https://issues.apache.org/jira/browse/CB-2893
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: BlackBerry
>    Affects Versions: 2.5.0
>         Environment: Blackberry Playbook device
>            Reporter: Roman V Polonsky
>            Assignee: Lorin Beer
>
> There is a problem with upload function on blackberry playbook.
> When I send one text-file and a parameter from test-application on playbook, php script on the server receives the following incorrect information:
> {code:none}array $_REQUEST:
> ('paramName' => 'paramValue',
> 'appFileKey' => '[object Object]')
> array $_FILES:
> ()
> {code} 
> For example when I send the same text-file and parameter from blackberry-qnx (z10 emulator), php receives the following information:
> {code:none}array $_REQUEST:
> ('paramName' => 'paramValue')
> array $_FILES:
> ( 'appFileKey' =>
> array (
> 'name' => 'uptest1364799530606o294.txt',
> 'type' => 'application/octet-stream',
> 'tmp_name' => '/tmp/phpT94hwn',
> 'error' => 0,
> 'size' => 15,
> )
> {code}
> In blackberry-qnx cordova.js 2.5.0 (LINE #9578) parameter blobFile in function fd.append() has type _Blob_, but in blackberry-playbook cordova.js 2.5.0 (LINE #4672) parameter blobFile has type _BlobConstructor_.
> So the problem is - file upload on blackberry playbook does not work properly. Maybe FormData can't parse correctly an appended object.



--
This message was sent by Atlassian JIRA
(v6.1#6144)