Pdf document to php server

#1

hi guys anyone having experiences in upload the pdf document from ionic to php server…

#2
 let options: FileUploadOptions = {
     fileKey: 'file',
     fileName: 'anyname',
     headers: {}
  }


 fileTransfer.upload('<file path>', http://aip.upload.php', options)
   .then((data) => {
     // success
   }, (err) => {
     // error
   })
}

#4

how can I attach my file in file path of transfer plugin?

#5