Also, I'm saving the file type in another column in the table because when retrieving the file I'm checking if the file is image or pdf. So the user uploaded files I'm saving as bytes in the database table. Here I have added User to upload Image type or PDF file to upload to the system in one module.
I have created a web application using ASP.NET MVC