Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master 63d07020c -> 2cd642211


[Windows8] upload uses the provided fileName or the actual fileName


Project: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/2cd64221
Tree: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/2cd64221
Diff: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/2cd64221

Branch: refs/heads/master
Commit: 2cd642211b9731138e00797bb2b45c25e6975326
Parents: 63d0702
Author: Jesse MacFadyen <[email protected]>
Authored: Wed Jun 18 00:42:40 2014 -0700
Committer: Jesse MacFadyen <[email protected]>
Committed: Wed Jun 18 00:42:40 2014 -0700

----------------------------------------------------------------------
 www/windows8/FileTransferProxy.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/2cd64221/www/windows8/FileTransferProxy.js
----------------------------------------------------------------------
diff --git a/www/windows8/FileTransferProxy.js 
b/www/windows8/FileTransferProxy.js
index 09f0aee..d72e985 100644
--- a/www/windows8/FileTransferProxy.js
+++ b/www/windows8/FileTransferProxy.js
@@ -67,7 +67,7 @@ exec(win, fail, 'FileTransfer', 'upload',
                 var blob = MSApp.createBlobFromRandomAccessStream(mimeType, 
stream);
 
                 var formData = new FormData();
-                formData.append(fileKey, blob, storageFile.name);
+                formData.append(fileKey, blob, fileName);
                 // add params
                 for(var key in params) {
                     formData.append(key,params[key]);

Reply via email to