Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(outPutFileName, Encoding.UTF8));
Response.OutputStream.Write(file, 0, file.Length);
Response.OutputStream.Flush();
Response.End();
Response 打开文件 open或save对话框,当文件名有小于号的时候(已经过url编码),可以打开,但不能保存,一点保存 对话框就直接消失,没有任何反应,其他字符都是可以的,为什么???。
Response.OutputStream.Write(file, 0, file.Length);
Response.OutputStream.Flush();
Response.End();
Response 打开文件 open或save对话框,当文件名有小于号的时候(已经过url编码),可以打开,但不能保存,一点保存 对话框就直接消失,没有任何反应,其他字符都是可以的,为什么???。
文件名不能出现 / \ : * ? " < > | 把.