In asp.net mvc the file is sent via POST to an action in the parameter defined as HttpPostedFileBase
Upload and download files using ASP.NET MVC
ASP.NET MVC 5 with EF 6 - Working With Files
observe in the examples how to use
[HttpPost]
public ActionResult Index(HttpPostedFileBase file) {
//codigo
}
when submitting the form submit the file you select in the
<input type="file" name="file" id="file" />
will be assigned to that parameter, a detail notes that the name
of the input matches the parameter of the action.
This way you will have the excel on the server so you can work it out.
If you use the liberia ClosedXml you could upload the excel from a Stream, there is a lot of info
ClosedXml wiki
then you get the stream using
MemoryStream excelStream = new MemoryStream();
file.InputStream.CopyTo(excelStream);
to assign this in the constructor of XLWorkbook