How to upload file, save upload history in ASP.NET Core MVC web application.



How to upload file, save upload history in ASP.NET Core MVC web application.

How to upload file, save upload history in ASP.NET Core MVC web application.

Hello guys, this is part 10 of our ASP.NET Core MVC project. So, this is just a modification after I demo the project to my manager. I just added here something like Upload History. Basically since we already have existing upload file things we just created new migration to add new table to hold the history of uploaded files then created the repository for that and save also the actual file to a folder in our web server.

As you noticed, we are creating each repository for each new table that we added. To solve this problem we need to create generic repository and unit of work design pattern combination. Here’s the link how we do it. https://youtu.be/RUonYLVSYKg