title: Phonegap 3.0 FileTransfer download not working
body: <p>I'm downloading a multi-part mime encoded image to iOS like this:</p>
  
  <pre><code>var ft = new FileTransfer();
  url = encodeURI(url);
  
  ft.download(url, path, function(fileEntry) {}, function(err) {});
  </code></pre>
  
  <p>with</p>
  
  <pre><code>path = "file://localhost/var/mobile/Applications/D702F059-A29F-4FF4-A165-D4A903DEDE7D/Documents/captured/2419747919.jpeg"
  </code></pre>
  
  <p>and get the following error:</p>
  
  <pre><code>body: "Could not create path to save downloaded file: The operation couldn’t be completed. (Cocoa error 513.)"
  code: 1 (file not found)
  http status: 200
  </code></pre>
  
  <p>This hints to an invalid path, but I can't see anything wrong with it. I get the path like this:</p>
  
  <pre><code>path = fs.root.toURL();
  </code></pre>
  
  <p>Everything else works fine and files can be stored in exactly the same path by taking photos. Just not via a FileTransfer download.</p>
  
  <p>Any ideas or a bug in Phonegap 3.0? Thanks!</p>
  
  <p><strong>UPDATE - Workaround</strong></p>
  
  <p>FileWriter works and now even saves blobs on iOS and Android. Example code:</p>
  
  <pre><code>var xhr = new XMLHttpRequest();
  
  xhr.open('GET', url, true);
  xhr.responseType = 'arraybuffer';
  
  xhr.onload = function() {
      var blob = new Blob([xhr.response], {type: 'image/jpeg'});
  
      // save via FileWriter
  };
  
  xhr.send();
  </code></pre>