My Blazor application has both UI and API endpoints, I am trying to write a common method for handling user uploaded files, Methoed accepts the file and converts and returns the content as string.
The problem is that API endpoint takes IFormFile whereas the UI takes IBrowserFile, I am not able to convert them to a common type in order to write a generic method.