cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject docs commit: CB-1935: FileTransfer.upload still documents the old way to specify headers
Date Mon, 26 Nov 2012 16:37:59 GMT
Updated Branches:
  refs/heads/master aeedb9905 -> 5e57a9c34


CB-1935: FileTransfer.upload still documents the old way to specify headers


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/5e57a9c3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/5e57a9c3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/5e57a9c3

Branch: refs/heads/master
Commit: 5e57a9c34a4d43c888d0a04087f687f88d3e03de
Parents: aeedb99
Author: Simon MacDonald <simon.macdonald@gmail.com>
Authored: Mon Nov 26 11:37:30 2012 -0500
Committer: Simon MacDonald <simon.macdonald@gmail.com>
Committed: Mon Nov 26 11:37:30 2012 -0500

----------------------------------------------------------------------
 .../edge/cordova/file/filetransfer/filetransfer.md |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/5e57a9c3/docs/en/edge/cordova/file/filetransfer/filetransfer.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/file/filetransfer/filetransfer.md b/docs/en/edge/cordova/file/filetransfer/filetransfer.md
index 1f666d1..933bd2d 100644
--- a/docs/en/edge/cordova/file/filetransfer/filetransfer.md
+++ b/docs/en/edge/cordova/file/filetransfer/filetransfer.md
@@ -178,10 +178,9 @@ Supported on Android and iOS
     options.fileName=fileURI.substr(fileURI.lastIndexOf('/')+1);
     options.mimeType="text/plain";
         
-    var params = {};
-    params.headers={'headerParam':'headerValue'};
+    var headers={'headerParam':'headerValue'};
     
-    options.params = params;
+    options.headers = headers;
     
     var ft = new FileTransfer();
     ft.upload(fileURI, uri, win, fail, options);    


Mime
View raw message