title: Excetipn in file uploading using ngCordova
body: <p>I'm working on a cross platform mobile app using cordova with backend server written in Asp.net
  I want to upload a file to the server from the application using REST api
  . I just wanted to check if the method will be invoked using a break point. I get an error with my link as the exception message. It doesn't upload and the break point doesn't even start . Here is the code </p>
  
  <pre><code>[HttpPost]
          [Route("Api/Token/test")]
          public IHttpActionResult TestFile(HttpPostedFileBase file) {
              if (file != null)
              {
  
              }
              return Ok();
          }`
  </code></pre>
  
  <p>this my code to upload the file</p>
  
  <pre><code>var url = "http:/192.168.101.1:3000/api/token/test";
  //File for Upload
   var targetPath = cordova.file.externalRootDirectory + "logo_radni.png";
  // File name only
  var filename = targetPath.split("/").pop();
  var options = {
     fileKey: "file",
      fileName: filename,
      chunkedMode: false,
      mimeType: "image/jpg",
     params : {'directory':'upload', 'fileName':filename} 
  };
  
  $cordovaFileTransfer.upload(url, targetPath,options).then(function (result) {
  console.log("SUCCESS: " + JSON.stringify(result.response));
                       }, function (err) {
                           console.log("ERROR: " + JSON.stringify(err));
                       }, function (progress) {
                           // PROGRESS HANDLING GOES HERE
                       });
  </code></pre>
  
  <p>this is the output from the console
  <code>{"code":3,"source":"file:///storage/emulated/0/logo_radni.png","target":"http:/192.168.101.1:3000/api/token/test","http_status":null,"body":null,"exception":"http:/192.168.101.1:3000/api/token/test"} (21:47:56:267)</code></p>
  
  <p>This is my config.xml</p>
  
  <pre><code> &lt;access origin="*"/&gt;
      &lt;allow-intent href="http://*/*"/&gt;
      &lt;allow-intent href="https://*/*"/&gt;
      &lt;allow-intent href="tel:*"/&gt;
      &lt;allow-intent href="sms:*"/&gt;
      &lt;allow-intent href="mailto:*"/&gt;
      &lt;allow-intent href="geo:*"/&gt;
      &lt;allow-navigation href="http://*/*" /&gt;
      &lt;allow-navigation href="https://*/*" /&gt;
  </code></pre>