Uploading a file with HTML and PHP is simple, but accepting arbitrary files from a browser is also a security-sensitive operation. A modern implementation should do more than call move_uploaded_file() ...
ASP.NET Core offers a simplified hosting model, called minimal APIs, that allows us to build lightweight APIs with minimal dependencies. We’ve discussed minimal APIs in several earlier posts here.