asp.net ashx handler prompting download instead of displaying file

后端 未结 3 1176
逝去的感伤
逝去的感伤 2021-01-20 22:11

I implemented a generic handler in my application which works great for images, but when I manually type the handler URL in the browser with the image\'s querystring it prom

3条回答
  •  执笔经年
    2021-01-20 23:02

    The content-disposition header is the one that causes your browser to show the download dialog. Remove that line and it will show in the browser.

提交回复
热议问题