Skip to content

Commit d0af821

Browse files
author
Bryan Higgins
committed
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.
1 parent 0439e71 commit d0af821

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

www/blackberry10/resolveLocalFileSystemURI.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
var info = require('org.apache.cordova.file.bb10FileSystemInfo'),
4242
requestAnimationFrame = cordova.require('org.apache.cordova.file.bb10RequestAnimationFrame'),
4343
createEntryFromNative = require('org.apache.cordova.file.bb10CreateEntryFromNative'),
44-
DEFAULT_SIZE = 5*1024*1024,
4544
SANDBOXED = true,
4645
UNSANDBOXED = false;
4746

@@ -111,7 +110,7 @@ function resolveLocal(success, fail, request, options) {
111110
//validate parameters and set sandbox
112111
function resolve(success, fail, path, fsType, sandbox, options, size) {
113112
options = options || { create: false };
114-
size = size || DEFAULT_SIZE;
113+
size = size || info.MAX_SIZE;
115114
if (size > info.MAX_SIZE) {
116115
//bb10 does not respect quota; fail at unreasonably large size
117116
fail(FileError.QUOTA_EXCEEDED_ERR);

0 commit comments

Comments
 (0)