文件名称:FileUpload 文件上传组件的ASP.NET实例
文件大小:449KB
文件格式:RAR
更新时间:2014-08-28 05:30:12
FileUpload 文件上传组件
关于大附件上传的插件,试了才知道![System.Web.Services.WebMethod] [System.Web.Script.Services.ScriptMethod] public static object GetUploadStatus() { //获取文件长度 UploadInfo info = HttpContext.Current.Session["UploadInfo"] as UploadInfo; if (info != null && info.IsReady) { int soFar = info.UploadedLength; int total = info.ContentLength; int percentComplete = (int)Math.Ceiling((double)soFar / (double)total * 100); string message = string.Format("上传 {0} ... {1} of {2} 字节", info.FileName, soFar, total); // 返回百分比 return new { percentComplete = percentComplete, message = message }; } // 还没有准备好... return null; }
【文件预览】:
codefans.net
----fileupload()
--------App_Code()
--------Uploads()
--------Upload.aspx(7KB)
--------web.config(8KB)
--------App_Data()
--------Default.aspx(6KB)
--------_assets()
--------Bin()