hi guys anyone having experiences in upload the pdf document from ionic to php server…
let options: FileUploadOptions = {
fileKey: 'file',
fileName: 'anyname',
headers: {}
}
fileTransfer.upload('<file path>', http://aip.upload.php', options)
.then((data) => {
// success
}, (err) => {
// error
})
}
how can I attach my file in file path
of transfer plugin?