title: How to use HttpClient send a form data request?
body: <p>Currently, I want to upload a file to our server. I can do it with  <strong><em>Http</em></strong> from <code>@angular/http</code> lib. </p>
  
  <p>But now, we want to change using <strong><em>HttpClient</em></strong> to align with the current project. I did search around, I could not find a solution on how to add a form data to the post request using <strong><em>HttpClient</em></strong>?</p>
  
  <p>[Update] the code that i used to upload file by http
  <code>
  let formData: FormData = new FormData();
  formData.append('file', file, file.name);
  this._http.post(base_api_url + uploadFileApi, formData)</code></p>
  
  <p>Could someone help me on that?</p>
  
  <p>Thank so much.</p>