hi,
iam working in asp.net mvc, my problem is iam working in fileupload control, but i uploaded one file. it is saved in local folder and filelocation also saved in the db. but how to get the file .when we click the edit button
plz help me..
How to get the file when we click the edit in asp.net mvc
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Anupam SinghRank #643 · 3.7K reputationPosted May 6, 2014, 3:47 AM EDT
public FileResult GetFile()
{
//first parameter is path of the file on server
//second content type
//3rd is file name
return File(@"C:\", "text/plain","myfile.txt");
}
Jignesh TrivediRank #16 · 50.3K reputationPosted May 6, 2014, 4:17 AM EDT
Please refer below link it might help you.
http://www.mikesdotnetting.com/Article/125/ASP.NET-MVC-Uploading-and-Downloading-Files
This link is explain how can we upload and download the file using MVC.