Salaamun Alekum I Am Getting NULL in file instance of action after posting a file in FORM

 public ActionResult CreateDoctorProfile(HttpPostedFileBase file)

            int LoggedInPersonID = Convert.ToInt32(Session["LoggedInPersonId"]);
            erx_t_personnel PersonnelInformation = db.erx_t_personnel.Where(PersonnelInformation1 => PersonnelInformation1.Person_Id == LoggedInPersonID).FirstOrDefault();

            return View(PersonnelInformation);

This Is My View

@model Doctors_Search_Engine.Models.erx_t_personnel

    ViewBag.Title = "Personnel Registration";


<h2>Personnel Registration</h2>

@using (Html.BeginForm())

        <input type="file" name="Image" />
        <input type="submit" value="Create" class="btn btn-default" />

What Should I Do To Get Value In file Of Action Parameters. I Need Guidance On This

Thank You

Related posts

Recent Viewed