0
votes

public ActionResult Index(HttpPostedFileBase file,string type) { // body

    }

This is an Index function where if I give only file parameter it works but if I wish to give parameter with file to get the value of the dropdown selected item then how should I do in mvc3.0. @using (Html.BeginForm("Index", "Home", FormMethod.Post, new { enctype = "multipart/form-data" })) { } This is what I am using for File Upload. Select Type1 I want the selected value from here help me out to sort out this.

1

1 Answers

1
votes

Any values in the same form as the input file will be submitted along with the file and are located in your Request.Form collection.