3 回答

TA贡献1906条经验 获得超3个赞
application/octet-stream
Content-Disposition
image/png
text/html
text/html
inline
filename
Content-Type: application/octet-stream Content-Disposition: attachment; filename="picture.png"
Content-Type: image/png Content-Disposition: attachment; filename="picture.png"
Content-Type: image/png Content-Disposition: inline; filename="picture.png"
inline

TA贡献1839条经验 获得超15个赞
这是一个很好的答案,如果事情是这样的话,那就太好了。但不幸的是,所有的浏览器都被破坏了。例如,如果这是来自表单的响应,google Chrome将不会为您打开一个“文件保存”窗口,而不管它是否包含“内容处理:附件”,即使以“应用程序/八位流”作为内容类型。然后他们打印一条消息说你可能受到攻击.。只是没有办法让我保存一个文件。您必须配置xdg-打开,即使您只想保存一个文件。我受够了这个。

TA贡献1797条经验 获得超6个赞
attachment
inline
- 3 回答
- 0 关注
- 371 浏览
相关问题推荐
添加回答
举报