Need to download zip file content, path is stored in sqlserver, i am using FILERESULT Action method in controller. My Controller looks like this:
public FileResult Download(string id)
{
string txtvalue = null; int cat = 0;
string searchType = Session["type"].ToString();
if (searchType == "name")
{
txtvalue = Session["item"].ToString();
}
else if (searchType == "cat")
{
cat = Convert.ToInt32(Session["item"]);
}
int fid =Convert.ToInt32(Session["Fid"]);
var files = _urepo.GetprojectName(fid);
string filename = (from f in files
select f.PRJ_LOCATION).SingleOrDefault();
string contentType = "application/zip";
return File(filename, contentType,"download"+filename);
}
But only file is downloading...contents are not downloading.. any help will be apprciated