Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IActionResult Download()
- {
- using (var client = new System.Net.WebClient())
- {
- var data = client.DownloadData("");
- var cd = new ContentDisposition
- {
- FileName = "",
- Inline = false
- };
- Response.Headers.Add("Content-Disposition", cd.ToString());
- return File(data, "");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement