Sagar Pallavi

Sagar Pallavi

  • 1.6k
  • 162
  • 15.4k

MVC file download

Dec 15 2020 12:23 PM
Hi Team,
 
When I try to download file using MVC controller I am always getting blank Excel file. Please let me know how to download file with the data. My requirement is to download or view the file from some path. 
 
I have followed below Article but it is also downloading blank file. Any security issue? 
 
https://www.c-sharpcorner.com/article/file-upload-and-download-using-asp-net-mvc-5-for-beginners/
 
Thanks in advance.
 
Regards,
SagarPallavi 
 

Answers (2)