I have an Android app, and a .NET Core 2.0 Web API. I would like to upload a picture, together with some data pertaining to the picture (UserID, PIN, etc). Quick googling points me to Microsoft docs which says you should use the IFormFile interface.
I would like to know if there is any way of uploading a file, as well as a json object to describe the picture being uploaded to the API? If not, would I have to create two action methods, one for the picture and the other for the json data? What would the best approach be?