Upload files and JSON in ASP.NET Core Web API : <p>How can I upload a list of files (images) and json data to ASP.NET Core Web API controller using multipart upload?</p>

<p>I can successfully receive a list of files, uploaded with <code>multipart/form-data</code> content type like that:</p>

<pre><code>public async Task&lt;IActionResult&gt; Upload(IList&lt;IFormFile&gt; files)
</code></pre>

<p>And of course I can successfully receive HTTP request body formatted to my object using default JSON formatter like that:</p>

<pre><code>public void Post([FromBody]SomeObject value)
</code></pre>

<p>But how can I combine these two in a single controller action? How can I upload both images and JSON data and have them bind to my objects?</p>
