title: Why is data not transmitted to the controller?
body: <p>I have next form:</p>
  
  <pre><code>&lt;form asp-controller="Chat" asp-action="AddFile" method="post"  asp-route-chatId="@Model.ChatId" enctype="multipart/form-data"&gt;
                      &lt;textarea id="messageInput" class="textInput" style="width: 80vh" name="messageInput"&gt;&lt;/textarea&gt;
                      &lt;div&gt;
                          &lt;input type="submit" id="sendButton" value="Send Message" /&gt;
                          &lt;input type="file" class="inputfile " id="File" name="File" value="File"/&gt;
                          &lt;label for="File"&gt;Choose a file&lt;/label&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
  </code></pre>
  
  <p>ViewModel</p>
  
  <pre><code>public class ChatFileViewModel
  {
      public long ChatId { get; set; }
      public string messageInput { get; set; }
      public IFormFile File { get; set; }
  }
  </code></pre>
  
  <p>and post method:</p>
  
  <pre><code>[HttpPost]
      public void AddFile([FromBody] ChatFileViewModel chatFile)
      { ... }
  </code></pre>
  
  <p>The issue is - every time i press submit it transfers ChatId correctly, while messageInput and File are null. I have no idea what it is, because i have exactly the same construction working correctly in the other part of my app.</p>