Here is my code where i am getting transfering data url.
let filePath: string = this.pathForImage(this.lastImage);
this.base64.encodeFile(filePath).then((base64File: string) => {
this.targetPath = base64File;
var options = {
fileKey: "file",
fileName: this.lastImage,
chunkedMode: false,
mimeType: "multipart/form-data",
params: {
UserId: data.UserId,
SchoolId: data.SchoolId,
SessionId: session.SessionId,
Name: this.Name,
EmailId: this.EmailId,
MobileNo: this.MobileNo,
VehicleNumber: this.VehicleNumber,
CompanyName: this.CompanyName,
CompanyAddress: this.CompanyAddress,
CityName: this.CityName,
IdProof: this.IdProof,
Carddetails: this.Carddetails,
ToMeet: this.ToMeet,
DepartMentName: this.DepartMentName,
GatePass: this.GatePass,
DeparMentMobileNo: this.DeparMentMobileNo,
PurposeOfEnquiry: this.PurposeOfEnquiry,
IsAppointment: this.IsAppointment,
pwd: '*AcD3249#
and my parameter’s for api is here
{
UserId,
SchoolId,
SessionId,
Name,
EmailId,
MobileNo,
VehicleNumber,
CompanyName,
CompanyAddress,
CityName,
IdProof,
Carddetails,
ToMeet,
DepartMentName,
GatePass,
DeparMentMobileNo,
PurposeOfEnquiry,
IsAppointment,
pwd,
Image
}
HELP HOW TO SET ALL PARAMS IN FILE TRANSFER PLUGIN,
Image: this.targetPath,
}
};
const fileTransfer: TransferObject = this.transfer.create();
fileTransfer.upload(this.targetPath, url, options).then(data => {
alert(“Success”);
this.hideLoader();
}, err => {
alert(“err”);
this.hideLoader();
});
}, (err) => {
console.log(err);
});
and my parameter's for api is here
DISCOURSE_PLACEHOLDER_2
HELP HOW TO SET ALL PARAMS IN FILE TRANSFER PLUGIN