title: Phonegap file upload fails with error 1 (file not found) on Android
body: <p>I have an app with the following upload javascript:</p>
  
  <pre><code>function take_image() {
      navigator.camera.getPicture(uploadPhoto, function(message) {alert('get picture failed');}, {
              quality: 50,
              destinationType: navigator.camera.DestinationType.FILE_URI,
              sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
          }
      );
  }
  
  function uploadPhoto(localURI) {
      window.resolveLocalFileSystemURI(localURI, function(fileEntry) {
          myURI=fileEntry.fullPath;
  
          var options = new FileUploadOptions();
          options.fileKey="file";
          options.fileName=myURI.substr(myURI.lastIndexOf('/')+1);
          options.mimeType="image/jpeg";
  
          var params = new Object();
          params.value1 = "test";
          params.value2 = "param";
          options.params = params;
          options.chunkedMode = true;
  
          var ft = new FileTransfer();
          ft.upload(myURI, "http://www.mydomain.co.uk/uploadimage.php", win, fail, options);
  
          alert(myURI + " uploading");
      }, resolveFail);  
  }
  </code></pre>
  
  <p>This sits there for about 5 minutes and fails with error code 1 (file not found) from the ft.upload call. </p>
  
  <p>I have already used resolveLocalFileSystemURI to get around the weird path you get from navigator.camera.getPicture sometimes, I thought that was the issue originally. The file path to upload looks good, but it comes up file not found after having a <strong>really</strong> good long think about it.</p>
  
  <p>Tried everything with this, the demo code simply does not work. Could it be a permissions issue?</p>