In this article, I will explain how to upload and display images. This article will help you to understand image tag helper and IFormFile in asp.net core. Image Tag Helper enhances the img tag to provide cache busting behavior for static image files. A unique cache-busting string is appended as a query parameter to the image source. The file on the host web server changes, a unique request URL is generated that includes the updated request parameter. IFormFile which is a C# representation of the file is used to process or save the file.
For more details please visit the link https://www.c-sharpcorner.com/article/upload-and-display-image-in-asp-net-core-3-1/