cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhigg...@apache.org
Subject git commit: CB-7445 [BlackBerry10] resolveLocalFileSystemURI - change DEFAULT_SIZE to MAX_SIZE
Date Thu, 04 Sep 2014 14:27:30 GMT
Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master 0439e711b -> d0af82105


CB-7445 [BlackBerry10] resolveLocalFileSystemURI - change DEFAULT_SIZE to MAX_SIZE

Setting the quota field has no effect other than to limit the amount of data that
may be written to the filesystem. There are no system limits nor are there any
prompts when an application requests a large quota. Unless the user specifically
requests a lower quota, it will be set to MAX_SIZE by default which provides
behaviour similar to the other Cordova platforms.


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

Branch: refs/heads/master
Commit: d0af821054665fcb526929b5d7100e03c68c6b69
Parents: 0439e71
Author: Bryan Higgins <bhiggins@blackberry.com>
Authored: Thu Sep 4 10:22:37 2014 -0400
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Thu Sep 4 10:22:37 2014 -0400

----------------------------------------------------------------------
 www/blackberry10/resolveLocalFileSystemURI.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/d0af8210/www/blackberry10/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/resolveLocalFileSystemURI.js b/www/blackberry10/resolveLocalFileSystemURI.js
index 5f144e4..340f888 100644
--- a/www/blackberry10/resolveLocalFileSystemURI.js
+++ b/www/blackberry10/resolveLocalFileSystemURI.js
@@ -41,7 +41,6 @@
 var info = require('org.apache.cordova.file.bb10FileSystemInfo'),
     requestAnimationFrame = cordova.require('org.apache.cordova.file.bb10RequestAnimationFrame'),
     createEntryFromNative = require('org.apache.cordova.file.bb10CreateEntryFromNative'),
-    DEFAULT_SIZE = 5*1024*1024,
     SANDBOXED = true,
     UNSANDBOXED = false;
 
@@ -111,7 +110,7 @@ function resolveLocal(success, fail, request, options) {
 //validate parameters and set sandbox
 function resolve(success, fail, path, fsType, sandbox, options, size) {
     options = options || { create: false };
-    size = size || DEFAULT_SIZE;
+    size = size || info.MAX_SIZE;
     if (size > info.MAX_SIZE) {
         //bb10 does not respect quota; fail at unreasonably large size
         fail(FileError.QUOTA_EXCEEDED_ERR);


Mime
View raw message