title: Uncaught ReferenceError: FileTransfer is not defined (using cordova 2.7.0)
body: <p>I want to use FileTransfer to download a file from web server, code is as following:</p>
  
  <pre><code>  function downloadFile(url) {
       var fileTransfer = new FileTransfer();
       var uri = encodeURI(url);
       var filepath="www/download/";
  
       fileTransfer.onprogress = function(progressEvent) {
          if (progressEvent.lengthComputable) {
            loadingStatus.setPercentage(progressEvent.loaded / progressEvent.total);
          } else {
            loadingStatus.increment();
          }
       };
  
      fileTransfer.download(
        uri,
        filePath,
        function(entry) {
          console.log("download complete: " + entry.fullPath);
        },
        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: {
  
          }
      }
    );
   }
  </code></pre>
  
  <p>when I run my app in simulator or real devide, all hit error message: Uncaught ReferenceError: FileTransfer is not defined.</p>
  
  <p>I have included cordova.js, what is the reason for this error? thanks.</p>
  
  <p>rgds
  brent</p>