这是我的代码。如何在上传按钮中使用它?
resetForm() {
this.formTemplate.reset();
this.formTemplate.setValue({
imageUrl: '',
category: ''
});
this.imgSrc = '/assets/img/image.png';
this.selectedImage = null;
this.isSubmitted = false;
this.currentUpload = null;
}