在HTTP标准说:
如果在带有application/octet-stream内容类型的响应中使用此标题[Content-Disposition:attachment],则隐含的建议是用户代理不应显示响应,而是直接输入`save response as .. '对话.
我读到了
Content-Type: application/octet-stream Content-Disposition: attachment
不过,我本来以为Content-Type
会application/pdf
,image/png
等等.
Content-Type: application/octet-stream
如果我想要浏览器下载文件,我应该有吗?