title: How to bind the files and Model posted from FormData in Asp.Net WebApi
body: <p>I have to post the multiple files including the Model from the client to server. File is posted using form data.</p>
  
  <p>On Server I wanted my field and value to be bind as:</p>
  
  <pre><code>public class Information
  {
      public string Id { get; set; }
      public string name { get; set; }
      public HttpPostedFile file { get; set; }
  }
  public class ModelPost
  {
      public List&lt;Information&gt; selectedFile { get; set; }
  }
  </code></pre>
  
  <p>In server i tried by this ways:</p>
  
  <pre><code>var provider = new MultipartFormDataStreamProvider(root);
  var result = await httpRequestMessage.Content.ReadAsMultipartAsync(provider);
  var deserializedName = JsonConvert.DeserializeObject&lt;ModelPost&gt;(result.FormData["model"]);
  </code></pre>
  
  <p>But this produces an error </p>
  
  <p><code>Could not create an instance of type System.Web.HttpPostedFileBase.</code></p>
  
  <p>Why i am not being to bind the files send through form data directly to <code>HttpPostedFileBase</code>?</p>
  
  <p>I am posting my files from the <code>vue.js</code>. </p>
  
  <p>Is there any extension to bind the file directly during <code>JsonConvert.DeserializeObject</code>?</p>