You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2014/01/03 17:16:01 UTC

git commit: CB-5722 [BlackBerry10] Update upload function to use native file object

Updated Branches:
  refs/heads/dev 7986a60a1 -> 398a9ecaf


CB-5722 [BlackBerry10] Update upload function to use native file object


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

Branch: refs/heads/dev
Commit: 398a9ecafbbe32d5e68254b32c19dd4f821a11ec
Parents: 7986a60
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Fri Jan 3 11:15:31 2014 -0500
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri Jan 3 11:15:31 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/398a9eca/www/blackberry10/XHRImplementation.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/XHRImplementation.js b/www/blackberry10/XHRImplementation.js
index 3ccf8f2..13752ee 100644
--- a/www/blackberry10/XHRImplementation.js
+++ b/www/blackberry10/XHRImplementation.js
@@ -118,7 +118,7 @@ module.exports = {
                 var start = 0;
                 var end = bytesPerChunk;
                 while (start < file.size) {
-                    var chunk = file.slice(start, end, mimeType);
+                    var chunk = file.nativeFile.slice(start, end, mimeType);
                     uploadFile(chunk);
                     start = end;
                     end = start + bytesPerChunk;