title: Phonegap: file transfer fail on Android
body: <p>I try to upload a file from my android phone to 000webhost by using Filetransfer.upload. It returns the error code 1. What does the error code 1 mean? Any help is appreciated. Thank you.</p>
  
  <pre><code>function uploadPhoto(imageURI) {
  
              var options = new FileUploadOptions();
              options.fileKey="file";
              options.fileName=imageURI.substr(imageURI.lastIndexOf('/')+1);
              options.mimeType="image/jpeg";
  
  
  
              var params = new Object();
              params.value1 = "test";
              params.value2 = "param";
  
              options.params = params;
              options.chunkedMode = false;
  
              var ft = new FileTransfer();
              ft.upload(imageURI, "http://tom.host88.com/upload1.php", win, fail, options,true);
  
          }
  </code></pre>