Content-Disposition:What are the differences between “inline” and “attachment”?

前端 未结 3 1244
孤街浪徒
孤街浪徒 2020-11-22 07:43

What are the differences between

Response.AddHeader(\"Content-Disposition\", \"attachment;filename=somefile.ext\")

and

Resp         


        
3条回答
  •  温柔的废话
    2020-11-22 08:01

    If it is inline, the browser should attempt to render it within the browser window. If it cannot, it will resort to an external program, prompting the user.

    With attachment, it will immediately go to the user, and not try to load it in the browser, whether it can or not.

提交回复
热议问题