I have a PDF file on the server that I want to send back to the browser as a download, but instead, it just loads to the screen. This is what I'm doing:
public ActionResult BillOfMaterials(Model model)
{
....
return File(@"C:\...(file path)...\result.pdf", "application /pdf");
}
What do I need to do so that it actually just downloads, and doesn't open in the browser?
Thanks!