ReadAsMultipartAsync equvialent in .NET core 2 : <p>I'am rewriting a .net 4.5 application to aspnet core 2.0 and I have a method that i have some problem updating:</p>

<pre><code>    [HttpPut]
    [Route("api/files/{id}")]
    public async Task&lt;Person&gt; Put(int id)
    {
        var filesReadToProvider = await Request.Content.ReadAsMultipartAsync();
        var fileStream = await filesReadToProvider.Contents[0].ReadAsStreamAsync();
        return _personService.UpdatePerson(id, fileStream);
    }
</code></pre>

<p>It seems that request no longer has Content, but body. Which is fine. But how how do i read the body if it is a MimeMultipart now? </p>

<p>I have looked into IFormFile, but don't I have to change something in the frontend?</p>

<p>Anything that will help me in the right direction is appreciated :) </p>
