title: Receiving HTML File Object in C# API via Post
body: <p>im trying to Send a File[] to a C# API.</p>
  <p>In the same POST request i have other value which get received normaly.
  Whats the best way to Cast/ Receive an File Object?
  i could retrieve the .stream() or .arrayBuffer() property, but its a promise and is not fullfilled till im sending the Files.</p>
  <p>Is there a C# class / Api i could cast the Files[] in?</p>
  <p>This is my API</p>
  <pre><code>[Route(&quot;CreateJobWithFile&quot;)]
  [HttpPost]
  public Task&lt;ApiResultModel&lt;bool&gt;&gt; CreateJobWithFile(testClass test)
  {
      ApiResultModel&lt;bool&gt; result = new ApiResultModel&lt;bool&gt;()
      {
          Data = true
      };
      return Task.FromResult(result);
  }
  </code></pre>
  <p>working model</p>
  <pre><code>public class testClass
  {
      public string Verfahren { get; set; }
      public string Anwendung { get; set; }
      public string Shape{ get; set; }
  
      public string test4 { get; set; }
  
      public List&lt;byte[]&gt; Files { get; set; }
  
      public testClass()
      {
          Files = new List&lt;byte[]&gt;();
      }
  }
  </code></pre>
  <p>I tried array of Stream and Byte[] but bot had the Problem that the Promise is not fullfilled</p>