I want to upload file in asp.net-mvc. How can I upload
the file using html input file control?
How to File Upload ASP.NET MVC 3
1920
02-Feb-2015
Updated on 02-Feb-2015
Anonymous User
02-Feb-2015You don't use a file input control. Server side controls are not used in ASP.NET MVC. Checkout thefollowing blog post which illustrates how to achieve this in ASP.NET MVC.
So you would start by creating an HTML form which would contain a file input:
and then you would have a controller to handle the upload: