cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [07/17] git commit: CB-5722 [BlackBerry10] Update upload function to use native file object
Date Mon, 10 Feb 2014 23:22:19 GMT
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/master
Commit: 398a9ecafbbe32d5e68254b32c19dd4f821a11ec
Parents: 7986a60
Author: Bryan Higgins <bhiggins@blackberry.com>
Authored: Fri Jan 3 11:15:31 2014 -0500
Committer: Bryan Higgins <bhiggins@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;


Mime
View raw message