摘要: 单独做图片上传很简单,如果要客户端要上传头像保存到服务器就要稍微麻烦一点点了。不多说了,直接上源码:private void Upload() { string jsonInfo = string.Empty; ///这句是关键,它是获取HTTP中文件流 的对象集合。 HttpFileCollection hfc = System.Web.HttpContext.Current.Request.Files; string mobile = string.IsNullOrEmpty(Request.Form["mobile"]) ? Request.QueryString[& 阅读全文
posted @ 2014-03-18 13:24 闪存第一莽撞人 阅读(1167) 评论(0) 推荐(0) 编辑