How to upload image to node after cropping from ngx-image cropper in Angular on change event of file

Below is my function

UploadImage(){
  let file: File = this.fileToReturn; //fileToReturn is returned file from the cropper
  let formData:FormData = new FormData();
  formData.append('uploadFile', file, file.name);
  console.log(JSON.stringify(formData))

  formData.forEach((value,key) => {
     console.log(key+" "+value)
   })
  this.authservice.uploadPhoto(formData)
  .subscribe(
    (response) => {
      console.log('response received is ', response); 
    }
  )
  // debugger;
  // console.log(formData);
}

Upon logging the value to the console & server I get the empty json '{}'. What should be done? Do I have to use any other libraries?