Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting FileError #113

Open
sanledi-buli opened this issue Aug 29, 2016 · 0 comments
Open

Getting FileError #113

sanledi-buli opened this issue Aug 29, 2016 · 0 comments

Comments

@sanledi-buli
Copy link

Hi, I'm sorry for this dummy question. I tried this on my ionic application with function:

var fs = new CordovaPromiseFS({
        Promise: $q
      });
      // Initialize a CordovaAppLoader
      var loader = new CordovaAppLoader({
        fs: fs,
        serverRoot: 'http://localhost:3000/',
        localRoot: 'app',
        cacheBuster: true, // make sure we're not downloading cached files.
        checkTimeout: 10000 // timeout for the "check" function - when you loose internet connection
      });
      loader.check().then(function (updateAvailable) {
        console.log(updateAvailable);
        if (updateAvailable)
        {
          loader.download(onprogress)
            .then(
              function (manifest)
              {
                console.log(manifest);
                loader.update();
              },
              function (failedDownloadUrlArray)
              {
                console.log(failedDownloadUrlArray);
              }
            )
        }
      });

But I got error ->
FileError {code: 10, name: "QuotaExceededError", message: "The operation failed because it would cause the application to exceed its storage quota."}

Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant