MIME让TXT可下载

匿名 (未验证) 提交于 2019-12-02 23:43:01

public void

string = " d:\\abc.txt " ;
//
//
// context.Response.Clear();
// context.Response.ClearHeaders();
//
//
" Content-disposition " " attachment;filename=abc.txt " );
//
//

// context.Response.Flush();
// context.Response.End();


public bool

get

return false ;




private void string

=
= new
= new byte [fs.Length];
0


= false
= " application/force-download " ;
" Content-Disposition: " " attachment;filename= " +
" Content-Length "







转载于:https://my.oschina.net/secyaher/blog/274128

文章来源: https://blog.csdn.net/weixin_33725239/article/details/91967098
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!