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..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted May 6, 2014, 8:17 AM
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.
Anupam SinghPosted May 6, 2014, 7:47 AM
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");
}