How to send form data with ionic native http!

async uploadImageData(formData: FormData) {

const loading = await this.loadingController.create({

  message: 'Uploading image...',

});

await loading.present();

let nativeCall = this.nativehttp.put(url, formData, {});



from(nativeCall).pipe(

  finalize(() => {

    loading.dismiss();

  })

).subscribe(res => {

  if (res['success']) {

    this.presentToast('File upload complete.');

  } else {

    this.presentToast('File upload failed.');

  }

});

}

}
i have a problem with my async uploadImageData method. can anyone help me out?
for http im using ionic native http.
can not send form data.

Check some of this tutes they’ll point you in the direction you need to go

https://www.positronx.io/how-to-use-angular-8-httpclient-to-post-formdata/

https://www.techiediaries.com/angular-formdata/

this is angular http not ionic native http