uploadify是一个对SWFUpload作了封装的js组件,你百度一下看看。比SWFUpload好用些。
PS: 不一定要MVC的Demo,跟ASP.NET/MVC/JSP没关系
可不可以说下它的原理呢, 网上的 一些.net例子,在后台也是简单的几句,这个和普通的input提交区别在哪,是不是分段上传的?还是怎么的,应该不支持断点续传的吧??
context.Response.ContentType = "text/plain"; context.Response.Charset = "utf-8";
HttpPostedFile file = context.Request.Files["Filedata"]; string uploadPath = HttpContext.Current.Server.MapPath(@context.Request["folder"])+"\\";
if (file != null) { if (!Directory.Exists(uploadPath)) { Directory.CreateDirectory(uploadPath); } file.SaveAs(uploadPath + file.FileName); context.Response.Write("1");