MVC3 Valums Ajax File Upload
I figured it out. this works in IE and Mozilla. [HttpPost] public ActionResult FileUpload(string qqfile) { var path = @”C:\\Temp\\100\\”; var file = string.Empty; try { var stream = Request.InputStream; if (String.IsNullOrEmpty(Request[“qqfile”])) { // IE HttpPostedFileBase postedFile = Request.Files[0]; stream = postedFile.InputStream; file = Path.Combine(path, System.IO.Path.GetFileName(Request.Files[0].FileName)); } else { //Webkit, Mozilla file = Path.Combine(path, qqfile); … Read more