Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-320

Persistent storage points to SD Card on Android 4.0 (Galaxy Nexus)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.5.0
    • Master
    • None
    • None

    Description

      According to the release notes for 5.0, this should not be an issue:

      "Prefix URIs for file API with file:/// and persistent storage should never point to SD card"

      However, using the following method, my file is still being stored to the SD card:

      window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem) {
      fileSystem.root.getFile("account.txt",

      { create: true , exclusive: false }

      , function(fileEntry) {
      fileEntry.file(function(file) {
      console.log(file); //

      {"fullPath": "/mnt/sdcard/account.txt", "lastModifiedDate": 1331530073000, "name": "account.txt", "size": 64, "type": "text/plain"}

      });
      });
      });

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              mwindwer Matthew Windwer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: