title: Cordova file transfer upload error code 1
body: <p>I am using cordova file transfer to upload an image to server. The problem is cordova file transfer always throwing <strong>error code 1</strong>. It worked before suddenly today it stop working.</p>
  
  <p>I dont see any param options value received on server.
  My code</p>
  
  <pre><code>savebase64AsImageFile(folderpath,filename,realData,dataType,q).then(function (success){
      console.log(success);
      $cordovaFile.checkFile(folderpath, filename).then(function (success) {
              console.log(success);
              success.getMetadata(function(metadata) {
              console.log('meta size2 ' +metadata.size); 
          });
      }, function (error) {
  
  });
  $scope.data.image = filename;
  $cordovaFileTransfer.upload(encodeURI(server), filePath, options, true).then(function(result) {...
  </code></pre>
  
  <p>I already checked using $cordovaFile.checkFile to make sure the file exists.
  and the options</p>
  
  <pre><code>var options ={
          fileName: filename,
          chunkedMode: true,
          params:{'user_id' : $scope.data.userid},
          headers:{Connection: 'close'}
      };
  </code></pre>
  
  <p>On my server I am using Laravel but the $request data is empty, I cant access the file or the user_id.</p>
  
  <p>For the folderpath I am using this </p>
  
  <pre><code>var folderpath = cordova.file.dataDirectory;
  var filePath = folderpath + filename;
  </code></pre>
  
  <p>filepath will return file location </p>
  
  <blockquote>
    <p>file:///data/user/0/com.ionicframework.test3829076/files/PV5xo1506004208779.jpg</p>
  </blockquote>
  
  <p>I am testing this on android device</p>
  
  <p>File Transfer Error
  <a href="https://i.stack.imgur.com/AcwA1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AcwA1.jpg" alt="enter image description here"></a></p>
  
  <p>status 409 is number I am giving if the request is null</p>
  
  <p>Any idea what cause this error?
  This part of code always worked before.</p>