so i am trying to open a file inline in Internet Explorer. This works perfectly but the problem is when i save it it uses the Name of the Method and not the name given to the content disposition.
var cd = new System.Net.Mime.ContentDisposition
{
FileName = formLanguage.FileName,
Inline = formLanguage.FileExtension == FileExtension.PDF
};
Response.Headers.Add("content-disposition", "inline; filename=" + cd.FileName);
AddDownloadedForm(formLanguage.Id);
return File(hBytes, type);