摘要:
今天在winform上需要上传,删除服务器上的文件,网上找了下上传是很多,可删除没有找到答案,,最后只能拿个土办法实现了,这里是用ashx文件来处理上传:B/Spublic void ProcessRequest(HttpContext context) { foreach (string fileKey in context.Request.Files) { try { HttpPostedFile file = context.Request.Files[fileKey]; string oldFileName = file.FileName; //原文件名 xxx.jpg int ex.
阅读全文