title: Phonegap fileupload and aspx c# android - Any examples lying around?
body: <p>I have got stuck with phonegap and fileupload. I was just trying to send a photo to the server using the code in the phonegap API.</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;
  
          var ft = new FileTransfer();
          ft.upload(imageURI, "http://some.server.com/upload.php", win, fail, options);
      }
  
      function win(r) {
          console.log("Code = " + r.responseCode);
          console.log("Response = " + r.response);
          console.log("Sent = " + r.bytesSent);
      }
  </code></pre>
  
  <p>I put my test aspx server in the line where it says upload.php. </p>
  
  <p>Except at this point I realised I didn't know what I was doing. So has anybody get any examples of receiving a file in aspx with c#.</p>
  
  <p>(before anybody asks I did have some code in my aspx but I realised it was probably nonsense)</p>
  
  <p>TIA</p>