title: Upload in Webapi ASP.NET Core json vs formdata
body: <p>I'm using <strong>webapi asp.net core</strong>, initially my actions were using the <strong>[FromBody]</strong> attribute on the parameters, and my front end send a json. Now I'm implementing a screen that has <strong>upload</strong>, and I had to use FormData to send the file, and at that point I inserted my object (which I used to send as json) in my <strong>FormData</strong>. So, I needed to change my backend to accept the FormData, just remove [FromBody].</p>
  
  <p>I would like use my action, both by passing formdata or passing a json, is it possible? How can implement this?</p>