I have a controller which has a function which returns a .msg
file in the format:
return File(emailOutput.ToArray(), "application/vnd.ms-outlook", "blahblah.msg");
My current front end @code block includes:
var response = await Http.GetAsync($"routewhichgetsthe return");
My question is what do I need to change on the front-end to allow for this returned file to be downloaded without storing it on the server? I'm not sure if the controller call needs changed, or how to get the HTML to allow a button press to activate the download.