I want to upload 2 image file on the server, but unable to upload 2 image file in a same api. In JSON api there is 2 parameter which requires image file i.e id_proof_file_name and address_proof_name. Rest Api function register(imageidproof,imageaddproof, fullname, mobile_no, dob, address, nominee_name, id_proof_number, add_proof_number): Promise<any> { return new Promise((resolve, reject) => { […]
- Tags "add_proof_number": add_proof_number, "address": address, "dob": dob, "id_proof_number": id_proof_number, "mobile_no": mobile_no, "nominee_name": nominee_name, }, add_proof_number): Promise { return new Promise((resolve, address, bothimage.toString()); const fileTransfer: FileTransferObject = this.transfer.create(); fileTransfer.upload(bothimage.toString(), but it through error string type is supported in this format. I want to have 2 fileKey is it possible ..?, but unable to upload 2 image file in a same api. In JSON api there is 2 parameter which requires image file i.e id_proof_file_name and addres, chunkedMode: false } let loading = this.loadCtrl.create({ spinner: 'crescent', content: 'Please Wait...', dob, duration: 5000 }); loading.present(); let bothimage = []; bothimage.push(imageidproof); bothimage.push(imagead, err); reject(); }) }) } and in upload function i tried to send the image in the array, fileKey:'address_proof_file', fullName, I want to upload 2 image file on the server, id_proof_number, imageaddproof, mobile_no, nominee_name, OPTIONS, params: { "full_name": fullname, reject) => { let oPtions = { fileKey: 'id_proof_file', result.message); resolve(); } }).catch(err => { loading.dismiss(); console.log("Something error happe, result); loading.dismiss(); this.checkForTokenFailure(result.status); if (result.response == "true") { reso, true).then(data => { let result = this.helper.parseData(data.response); console.log("Response from server", URL + 'registration'