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/09/04 16:27:30 UTC

git commit: CB-7445 [BlackBerry10] resolveLocalFileSystemURI - change DEFAULT_SIZE to MAX_SIZE

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 <bh...@blackberry.com>
Authored: Thu Sep 4 10:22:37 2014 -0400
Committer: Bryan Higgins <bh...@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);