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

Jesse MacFadyen resolved CB-2420.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6.0

> On Windows 8 , FileTransfer.upload ignores the fileKey and params options
> -------------------------------------------------------------------------
>
>                 Key: CB-2420
>                 URL: https://issues.apache.org/jira/browse/CB-2420
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer, Windows 8
>    Affects Versions: 2.4.0
>            Reporter: Youval Bronicki
>            Assignee: Jesse MacFadyen
>             Fix For: 2.6.0
>
>
> The problem seems to be in FileTransferProxy, which simply ignores the 
> options array.
> Here's a partial correction (there are additional options in the array):
> *Old Code:*
> var blob = MSApp.createBlobFromRandomAccessStream(storageFile.contentType, 
> stream);
> var formData = new FormData();
> formData.append("source\";filename=\"" + storageFile.name + "\"", blob);
> *New Code:*
> var fileKey = options[2];
> var fileName = options[3];
> var params = options[5];
>  
> var blob = MSApp.createBlobFromRandomAccessStream(storageFile.contentType, 
> stream);
> var formData = new FormData();
> formData.append(fileKey, blob, fileName);
> for (var key in params)
>   formData.append(key, params[key]);
>  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to