Request.Files in ASP.NET CORE
<p>I am trying to upload files using aspnet core using ajax request . 
In previous versions of .net i used to handle this using </p>

<pre><code> foreach (string fileName in Request.Files)
            {
                HttpPostedFileBase file = Request.Files[fileName];
                //Save file content goes here

                fName = file.FileName;
     (...)
</code></pre>

<p>but now its showing error at request.files how can i get it to work ? i searched and found that httppostedfile has been changed to iformfile but how to handle request.files?</p>