Jquery Uploadify上传带进程条的简约实例_jquery_脚本

2019-12-01 作者:亚洲城动态   |   浏览(69)

复制代码 代码如下:

Jquery Uploadify上传带进度条

上传)| 取消上传)

复制代码 代码如下:

using System;using System.Web;using System.IO;

public class UploadHandler : IHttpHandler{ public void ProcessRequest { 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 { if (!Directory.Exists { Directory.CreateDirectory; } file.SaveAs(Path.Combine(uploadPath, file.FileName)); context.Response.Write; } else { context.Response.Write; } }

public bool IsReusable { get { return false; } }}

本文由yzc216亚洲城发布于亚洲城动态,转载请注明出处:Jquery Uploadify上传带进程条的简约实例_jquery_脚本

关键词: 亚洲城官网 yzc216亚洲城