title: cordova file-transfer plugin - file:///storage/emulated/0/Foldername/myImage.jpg is working in xperia z ultra but not in oneplus 2
body: <p>I am developing a cordova application using visual studio 2017 to download images. I have added the cordova-plugin-file and cordova-plugin-file-transfer plugins. I used the following code.</p>
  
  <pre><code>function downloadFile() {
  var fileTransfer = new FileTransfer();
  var downloadurl = document.getElementById("bigprofile").src;
  var uri = encodeURI(downloadurl);
  
  
  var fileURL = "file:///storage/sdcard0/Foldername/myimage.jpg";
  
  
  fileTransfer.download(
      uri, fileURL, function (entry) {
          alert("download complete: " + entry.toURL());
      },
  
      function (error) {
          alert("download error source " + error.source);
          alert("download error target " + error.target);
          alert("download error code" + error.code);
      },
  
      false, {
          headers: {
              "Authorization": "Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=="
          }
      }
  );
  }
  </code></pre>
  
  <p>This method works fine in xperia z ultra. But it's not working with my oneplus 2 device. </p>
  
  <p>The following path too didn't work.</p>
  
  <pre><code>var fileURL = "file:///storage/emulated/0/Foldername/myimage.jpg";
  </code></pre>
  
  <p>Later i tried </p>
  
  <pre><code>var fileURL = "cdvfile://localhost/persistent/myimage.jpg";
  </code></pre>
  
  <p>This was successful. I got an alert</p>
  
  <pre><code>"download complete:file///data/user/0/io.cordova.myappeb072d/files/files/myimage.jpg". 
  </code></pre>
  
  <p>I used ES explorer to view this path. But there is no such path. In the root there is a data folder but it is empty.</p>
  
  <p>Please suggest me a method to download a file, that is common across all other android platforms irrespective of the devices</p>