I want to upload file in asp.net-mvc And AngularJS. How can I upload the file using html input file control?
@using (Html.BeginForm("Index", "Home", FormMethod.Post, new { enctype = "multipart/form-data" })) { <input type="file" name="file" /> <input type="submit" value="OK" /> }
@using(Html.BeginForm("UploadFile","Upload", FormMethod.Post, new { enctype="multipart/form-data"})) { <div> @Html.TextBox("file", "", new { type= "file"}) <br /> <input type="submit" value="Upload" /> </div> }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)