In my ApiController class, I have following method to download a file created by server.
public HttpResponseMessage Get(int id) { try { strin
You need to add the content-disposition header to the response:
response.StatusCode = HttpStatusCode.OK; response.Content = new StreamContent(result); response.AppendHeader("content-disposition", "attachment; filename=" + fileName); return response;