title: ASP.NET MVC app shuts down when i try uploading files
body: <p>I have a form in my asp.net web app, which sends files uploaded by the user</p>
  <pre class="lang-html prettyprint-override"><code>&lt;form method=&quot;post&quot; asp-action=&quot;@((Model != null) ? &quot;Update&quot; : &quot;Upload&quot;)&quot; asp-controller=&quot;Materials&quot; enctype=&quot;multipart/form-data&quot;&gt;
          &lt;input id=&quot;cat&quot; type=&quot;hidden&quot; name=&quot;cat&quot; /&gt;
          &lt;input id=&quot;subcat&quot; type=&quot;hidden&quot; name=&quot;subcat&quot; /&gt;
          &lt;input type=&quot;file&quot; name=&quot;file&quot; max=&quot;1&quot; title=&quot;@((Model != null) ? &quot;Обновить&quot; : &quot;Загрузить&quot;)&quot;/&gt;&lt;br /&gt;
          &lt;input type=&quot;file&quot; name=&quot;images&quot; multiple title=&quot;Загрузить картинки&quot;/&gt;&lt;br /&gt;
          &lt;input id=&quot;name&quot; type=&quot;text&quot; name=&quot;name&quot; maxlength=&quot;30&quot; /&gt;&lt;br /&gt;
          &lt;textarea id=&quot;desc&quot; name=&quot;description&quot; maxlength=&quot;199&quot; &gt;&lt;/textarea&gt;&lt;br/&gt;
          &lt;input type=&quot;submit&quot; value=&quot;Сохранить&quot;/&gt;
  &lt;/form&gt;
  </code></pre>
  <p>There is one input for a file, and one input for image files, but as soon as I input any files the app just.... shuts down</p>
  <p>Here is the method from the controller:</p>
  <pre><code>[HttpPost]
  public IActionResult Upload(IFormFile file, IFormFileCollection images, string name, string description, string cat, string subcat)
  {
      FileUploadManager f = new FileUploadManager(environment.WebRootPath + '/');
      f.Upload(file,images, name, description, cat + &quot;-&quot; + subcat);
      return Redirect(Url.Action(&quot;Index&quot;, &quot;Material&quot;));
  }
  </code></pre>
  <p>the browser does not shut down, the app itself in the VS does, and without any exceptions, it just stops debugger as soon as files contact with HTML
  also, I am using Yandex browser</p>