title: How to retrieve a form POST response on angular 8
body: <p>how can I retrieve the server response of the server after making a POST call on a html form?</p>
  
  <pre><code>&lt;form action="http://localhost:8080/upload" method="POST"&gt;
  &lt;label for="file"&gt;Choose File&lt;/label&gt;
      &lt;input type="file"
          id="file"
          enctype="multipart/form-data"&gt;
      &lt;div *ngIf=badName&gt;
          &lt;small id="emailHelp" class="form-text text-muted"&gt;Wrong file format. Only accepted format: csv.&lt;/small&gt;
      &lt;/div&gt;
      &lt;button type="submit" value="Submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>