title: How to upload cordova filetransfer using server asp.net
body: <p>i am creating an api that will recieve file from cordova file tranfer plugin.But while uploading , we are getting error "[10/19/2016 5:03:33 PM] azad singh: E/FileTransfer: {"target":"http://54.252.109.57:1031/api/Client/SaveDocument","http_status":500,"body":"\"Object reference not set to an instance of an object.\"","code":1,
  [10/19/2016 5:03:45 PM] azad singh: Cordova - Camera"</p>
  
  <pre><code>    [HttpPost]
      [Route("Uploadfile")]
      public string Uploadfile()
      {
          string msg = "";
          try
          {
              HttpPostedFile file = HttpContext.Current.Request.Files["file"];
              string saveFile = file.FileName;
              //code to save the file
  
              msg = "File uploaded";
  
  
          }
          catch (Exception ex)
          {
              msg = "Could not upload file: " + ex.Message;
  
          }
          return msg;
      }
  </code></pre>
  
  <p>Please tell me where I am missing in my code...</p>