How to attach pdf from ios device using ionic v1


#1

i am try to attach .pdf file using

$scope.postArrayNotice.AttachedFileName1=$scope.postArray.file;
$scope.postArrayNotice.AttachedFileName =$cordovaFile.checkFile(cordova.file.documents, $scope.postArrayNotice.AttachedFileName1);
alert($scope.postArrayNotice.AttachedFileName, ‘<==test’);
// $scope.postArrayNotice.AttachedFileName =“OnlineMemberFile/13/2/AttachDocByMember/1000000000009_1523616946318.pdf”;
console.log($scope.postArrayNotice.AttachedFileName, ‘<==== test’);

this type.

i want to use hit this pdf url from post API,
and i am get this type of url in chrome

C:\fakepath\554389867_Sep2017.pdf

please help me…