title: Angular Passing FormData to WebAPI. Getting null
body: <p>I am passing FormData object from Angular 7 to WebAPI but I getting a null </p>
  
  <p>Any help is appreciated. Thanks</p>
  
  <p>From typescript, i have </p>
  
  <pre><code>selectFile(event){ 
        if (event.target.files[0]) {
            this.blob = event.target.files[0];
        }
      }
  
  save() {
  
  let formDataDTO = new FormData();
          formDataDTO.append('file', this.blob, this.fileName);
  
  this.http.post&lt;T&gt;(this.url, JSON.stringify(formDataDTO), this.getHeaders())
        .pipe(
        catchError(error =&gt; {
  
        }))
  
  }
  </code></pre>
  
  <p>In WebAPI, </p>
  
  <pre><code>[HttpPost]
          [Route("file/add")]
  
          public HttpResponseMessage Save([FromBody] HttpPostedFileBase form)
          {
              var test = form; // form is always null
  //cannot access Request.Content.file
  // Request.Content.isFormData() is false
  // Request.Content.IsMimeMultipartContent() cannot be evaluated
  
          }
  </code></pre>