Roman V Polonsky created CB-2893:
------------------------------------
Summary: 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: Tim Kim
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:
array ()
{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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira