[ https://issues.apache.org/jira/browse/CB-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14033137#comment-14033137 ]
ASF subversion and git services commented on CB-2420: ----------------------------------------------------- Commit 63d07020cfa891d85be0b5df7da605cffefbc524 in cordova-plugin-file-transfer's branch refs/heads/master from [~purplecabbage] [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file-transfer.git;h=63d0702 ] CB-2420 [Windows8] honor fileKey and param options. This closes #15 > 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 > > 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)