title: upload audio file from mobile devices in cordva
body: <p>In my application need to upload audio file from mobile device (iPhone/Android).
  the audio file is call recording.</p>
  
  <p>can I find the path of call recording file, even though the user using different call recorder application ? I looking for audio file into path :"/private/var/mobile/Media/Containers/Data/Application" and cordova.file.tempDirectory , i'm not sure is correct path?</p>
  
  <p>I try to do it with requestFileSystem below the code:</p>
  
  <pre><code>var numDirs = 0;
  var numFiles = 0;
  var ImageFilePath = new Array();
  
  function GetAllAudioFromSD11() {
      window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onFileSystemSuccess, fail);
  
  }
  
  function onFileSystemSuccess(fileSystem) {
      fileSystem.root.getDirectory("/private/var/mobile/Media/Containers/Data/Application", { create: false, exclusive: false }, getDirSuccess, fail);
  }
  
  function getDirSuccess(dirEntry) {
      var directoryReader = dirEntry.createReader();
  
      // Get a list of all the entries in the directory
      directoryReader.readEntries(readerSuccess, fail);
  }
  
  
  var readerTimeout = null, millisecondsBetweenReadSuccess = 1000;
  
  function readerSuccess(entries) {
      String.prototype.startsWith = function (str)
      { return (this.match("^" + str) == str) }
  
      var i = 0, len = entries.length;
      for (; i &lt; len; i++) {
          if (entries[i].isFile) {
              if ((entries[i].name.indexOf(".wav") != -1) || (entries[i].name.indexOf(".mp3") != -1) || (entries[i].name.indexOf(".amr") != -1)) {
                  var fileName = entries[i].name;
                  if (!fileName.startsWith(".")) {
                      numFiles++;
                      ImageFilePath.push(entries[i].fullPath)
                      //  console.log("file "+entries[i].fullPath)
                  }
              }
  
          } else if (entries[i].isDirectory) {
              numDirs++;
              // console.log("directory "+entries[i].name)
              var dirName = entries[i].name;
              if (!dirName.startsWith(".")) {
                  getDirSuccess(entries[i]);
              }
          }
          if (readerTimeout) {
              window.clearTimeout(readerTimeout);
          }
      }
      if (readerTimeout) {
          window.clearTimeout(readerTimeout);
      }
      readerTimeout = window.setTimeout(weAreDone, millisecondsBetweenReadSuccess);
  </code></pre>
  
  <p>}</p>
  
  <p>Also try file opneer2 plugin </p>
  
  <pre><code> function GetAllAudioFromSD()
      {
      cordova.plugins.fileOpener2.open(
      '/private/var/mobile/Media/Containers/Data/Application', // You can also use a Cordova-style file uri: cdvfile://localhost/persistent/Download/starwars.pdf
      'application/pdf', 
      { 
          error : function(e) { 
              console.log('Error status: ' + e.status + ' - Error message: ' + e.message);
          },
          success : function () {
              console.log('file opened successfully'); 
          }
      }
  );
  
      }
  </code></pre>
  
  <p>with these solutions, I can upload pictures and Video but I can't see audio file to select it and upload it. </p>