Can not post using native http method to the Nodejs API

Uncaught Error: advanced-http: “data” option is configured to support only following data types: Object
anyone know how to fix this?
below i have mentioned my code. thanks.
don’t care about the API

async uploadImageData(formData: FormData) {

const loading = await this.loadingController.create({

  message: 'Uploading image...',


await loading.present();

let nativeCall ="http://localhost/api", formData, {});


  finalize(() => {



).subscribe(res => {

  if (res['success']) {

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

  } else {

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