title: Cordova FileTransfer Download error
body: <p>I have a simple hybrid app which should download files with cordova 2.3.0. From the documentation:</p>
  
  <pre><code>var filePath = someFullPath; //e.g. "file:///mnt/sdcard/myfile.pdf"
  var uri = encodeURI("http://someurl.com/myfile.pdf");
  
  var fileTransfer = new FileTransfer();
  
  fileTransfer.download(
              uri,
              filePath,
              function(entry) {
                  console.error("download complete: " + entry.fullPath);
              },
              function(error) {
                  console.error("download error source " + error.source);
                  console.error("download error target " + error.target);
                  console.error("donwload error code " + error.code);
                  console.error("http: "+error.http_status);
  
              }
      );
  }
  </code></pre>
  
  <p>The outcome is error 3, Connection_Err, with http_status 401, the resource myfile.pdf is public on a http server with no auth required.</p>
  
  <p>I have tried both creating the file file://mnt/sdcard/myfile.pdf with getFile("my file.pdf", {create: true, exclusive: false}, success, fail); or just setting a string to an existing directory. It didn't work in both scenarios.</p>
  
  <p>Can you please advise? I have to use cordova 2.3.0.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I think my problem is very close to this one: <a href="https://stackoverflow.com/questions/11625710/filetransfer-in-phonegap-code-401">FileTransfer in Phonegap code 401</a></p>
  
  <p>I have Android API 17, cordova 2.3.0, I need to set allow origin = "*", but I can't create the config.xml file, for some reasons it throws errors. Have you faced this problem?</p>
  
  <p>I created the folder xml inside res (there wasn't one) and created a file config.xml inside such folder. The content of the config.xml is</p>
  
  <pre><code> &lt;access origin="*"&gt;&lt;/access&gt;
  </code></pre>
  
  <p>when I run the application I get an alert with this error: Error Initializing Cordova: Class not found</p>