Hello everyone,
In MVC 5, I have view contain 2 file type input control,
- @model Reboxwebapp.Models.ViewModel.PartnerVM
- @using (Html.BeginForm("Index", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
- Logo Image:
-
- @Html.TextBoxFor(model => model.LogoImage, new { type = "file", id = "fileToUploadLogo" })
-
- Title Picture:
-
- @Html.TextBoxFor(model => model.TitlePictureImage, new { type = "file" , id = "fileToUploadTitle" })
-
- <input type="submit" value="OK" />
- }
How can I pass each image to controller?
- [HttpPost]
- public ActionResult GetPartner(PartnerVM partnerVM, HttpPostedFileBase fileUpload)
- {
- partnerBL.LogoImage = ??
- partnerBL.TitlePictureImage = ??
- }
Please help me...