trying to read text into memory from a text file the user selects
MODEL:
public HttpPostedFileBase File { get; set; }
VIEW
<form action="" method="post" enctype="multipart/form-data" id="MyForm">
@Html.TextBoxFor(m => m.File, new { type = "file" })
<input type="submit" name="btnSubmit" id="ProcessAll" value="Process All" />
</form>
CONTROLLER:
[HttpPost]
public ActionResult FileToFasta(F2FModel model)
{
//Need to read file to a string without uploading it
return View(model);
}
Any thoughts? Thanks
1 Answer