I have a form that upload a file and the server has to process a large operation that takes several minutes.
My code:
.cshtml:
@using (Html.BeginForm("MyAction", "MyController", FormMethod.Post,
new { enctype = "multipart/form-data" }))
{
<input type="file" name="file"/>
<input type="submit" value="submit" />
}
Controller:
[HttpPost]
public ActionResult MyAction(HttpPostedFileBase file)
{
// Process a large operation here.
return View();
}
I know it's possible to do it with web.config configuration and with server code.
My question: Is it possible to do with client side configuration?
I ask that because when using XMLHttpRequest
like jQuery.ajax
its possible to set the timeout, so is it possible to do in html form tag or something?