jquery.uploadify 使用过程
2020-12-06 00:53
阅读:568
YPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
标签:des style blog http java 使用
HTML:
swfupload_ajax_demo
.UploadHandler.ashx
public class UploadHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Charset = "utf-8"; string student_id = CommonClass.Request.GetRequest("student_id", ""); 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"); } else { context.Response.Write("0"); } } public bool IsReusable { get { return false; } } }
jquery.uploadify 使用过程,搜素材,soscw.com
jquery.uploadify 使用过程
标签:des style blog http java 使用
原文地址:http://blog.csdn.net/chinaboykai/article/details/24696541
评论
亲,登录后才可以留言!