Posted on: 10/30/2014 5:14:41 AM | Views : 439

Hello AlL,
After uploading the file I am trying to display the details of the file on the same view..
Below is my upload controller code
public ActionResult UploadFiles() { UploadFilesResult urf = new UploadFilesResult(); // model List<UploadFilesResult> viewModelList = new List<UploadFilesResult>(); foreach (string file in Request.Files) { HttpPostedFileBase hpf = Request.Files[file] as HttpPostedFileBase; if (hpf.ContentLength == 0) continue; string savedFileName = Path.Combine(Server.MapPath("~/App_Data"), Path.GetFileName(hpf.FileName)); hpf.SaveAs(savedFileName); // Save the file urf.Name = hpf.FileName; urf.Length = hpf.ContentLength; urf.Type = hpf.ContentType; ...

Go to the complete details ...