title: How to use FormData for ionic file upload
body: <p>i want to send formdata to server with fileTransfer(ionic 3 ) or other function </p>
  
  <pre><code>var form = new FormData();
  form.append("filedata", base64File);
  form.append("numDeclaration", "01012018");
  
  let options: FileUploadOptions = {
            fileKey: 'filedata',
            fileName: imageName,
            chunkedMode: false,
            mimeType: "image/jpeg",
            headers: {}
          }
  
  fileTransfer.upload(base64File, 'http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/f3589d6b-82db-44d2-9b6d-89a3e7e57442/children?alf_ticket=' + localStorage.getItem('token'), options).then((data) =&gt; {
       console.log(data + " Uploaded Successfully");
  }
  </code></pre>