You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/05/28 00:10:30 UTC

[1/2] git commit: Upload progress now works also for second file

Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master 3bdf3775e -> 156ae2092


Upload progress now works also for second file

- Sent bytes must be reseted before new upload, otherwise "onprogress" event "loaded" value provides sum of uploaded bytes (not just for the current upload, but all of them)


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/70463c23
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/70463c23
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/70463c23

Branch: refs/heads/master
Commit: 70463c238aa3668c133cbfe88fe4646b1c46a4a6
Parents: c0c91d0
Author: Martin Hujer <mh...@gmail.com>
Authored: Sat Mar 8 22:33:37 2014 +0100
Committer: Martin Hujer <mh...@gmail.com>
Committed: Sat Mar 8 22:33:37 2014 +0100

----------------------------------------------------------------------
 src/wp/FileTransfer.cs | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/70463c23/src/wp/FileTransfer.cs
----------------------------------------------------------------------
diff --git a/src/wp/FileTransfer.cs b/src/wp/FileTransfer.cs
index f8b6ed5..6b18931 100644
--- a/src/wp/FileTransfer.cs
+++ b/src/wp/FileTransfer.cs
@@ -765,6 +765,8 @@ namespace WPCordovaClassLib.Cordova.Commands
 
                             byte[] buffer = new byte[4096];
                             int bytesRead = 0;
+                            //sent bytes needs to be reseted before new upload
+                            bytesSent = 0;
                             totalBytesToSend = fileStream.Length;
 
                             requestStream.Write(boundaryBytes, 0, boundaryBytes.Length);


[2/2] git commit: Merge branch 'wp8-loaded' of https://github.com/mhujer/cordova-plugin-file-transfer

Posted by pu...@apache.org.
Merge branch 'wp8-loaded' of https://github.com/mhujer/cordova-plugin-file-transfer


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/156ae209
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/156ae209
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/156ae209

Branch: refs/heads/master
Commit: 156ae2092e019e4bb3f9e3433a5009b4b5a1e9a1
Parents: 3bdf377 70463c2
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue May 27 15:09:54 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue May 27 15:09:54 2014 -0700

----------------------------------------------------------------------
 src/wp/FileTransfer.cs | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/156ae209/src/wp/FileTransfer.cs
----------------------------------------------------------------------