title: Cordova: Uncaught ReferenceError: FileTransfer is not defined
body: <p>I would like to download a PDF file from a server and save it to the local storage of that device. 
  To do that I have found the <a href="https://github.com/apache/cordova-plugin-file-transfer" rel="nofollow noreferrer">cordova-plugin-file-transfer</a>.</p>
  
  <p>running that piece of code: </p>
  
  <pre><code>var fileTransfer = new FileTransfer();
  var uri = encodeURI("http://example.com/file.pdf");
  var fileURL = "/Martin/Downloads/";
  
  function openDocument() {
     fileTransfer.download(
      uri,
      fileURL,
      function(entry) {
          console.log("download complete: " + entry.toURL());
      },
      function(error) {
          console.log("download error source " + error.source);
          console.log("download error target " + error.target);
          console.log("upload error code" + error.code);
      },
      false,
      {
          headers: {
              "Authorization": "Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=="
          }
      }
  );
  }
  </code></pre>
  
  <p>gives me that issue: </p>
  
  <blockquote>
    <p>Uncaught ReferenceError: FileTransfer is not defined</p>
  </blockquote>
  
  <p>I have already removed all my platforms and reinstalled them. 
  After that I have removed all my plugins and reinstalled them. </p>
  
  <p>A similiar <a href="https://stackoverflow.com/questions/16442698/uncaught-referenceerror-filetransfer-is-not-defined-using-cordova-2-7-0">thread</a> could not help me. </p>
  
  <p>What else could I do ?</p>