Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

How to send form data with ionic native http!

$
0
0

@dimithrab wrote:

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.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>