SyntaxFix
Write A Post
Hire A Developer
Questions
You must specify :
Response.AppendHeader("content-disposition", "inline; filename=file.pdf"); return new FileStreamResult(stream, "application/pdf")
For the file to be opened directly in the browser instead of being downloaded