I have checked various answer for this, but none of them works for me, my code in .cshtml is as follows:
if you want to use MVC to upload file you need: - create form and have to set tag: enctype = "multipart/form-data" - create input with name same HttpPostedFileBase in controller