Hi folks,
I am using Aps.net core. Here is my sample code:
public FileStreamResult DownloadPoliceReport([FromRoute] int id) { var getFile = _context........; MemoryStream ms = new MemoryStream(getFile.Data); return new FileStreamResult(ms, getFile.ContentType); }
This code seem ok.
I want to avoid automatic downloading in browser if i get doc file in Iframe.
Any idea?
I am waiting your response.
Thanks in advance!