As there is no helper for File Input, how can we safely handle a file input?
If it better just to have a button
<input type="button" value="Upload File" />
and handle this in a new pop-up page/window?
shall I have the
<input type="file" value="Upload File" />
but how would I handle this in the code?
#region General
//
// GET: /Content/General
public ActionResult General()
{
GeneralModel model = new GeneralModel();
return View(model);
}
[HttpPost]
public void General(GeneralModel model)
{
}
#endregion
The model will not be populated with the file so I need to do something else ... just don't know what :(
Any help is greatly appreciated.
Thank you.