@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