开发者

Image link not to download the image

开发者 https://www.devze.com 2023-03-11 19:04 出处:网络
How to make an image link not to download the image but to show it on the browser? If you go to twitter and click on a user\'s photo it will redirect you to the photo and it seems to be a simple link.

How to make an image link not to download the image but to show it on the browser? If you go to twitter and click on a user's photo it will redirect you to the photo and it seems to be a simple link.

In my case-Google Chrome and firefox are downloading the image. Is this has to do with the IIS or just the browsers?

Any ideas?

Exam开发者_如何学Gople:

<a href="http://photos.wadja.com/845_763686_t.jpg" target="_blank"><img src="http://photos.wadja.com/845_763686_t.jpg" id="profile_pic" width="72" height="72" class="cursor"></a>


Forced downloads are caused by HTTP response codes. for example if you have Content-Disposition header set it will force download.

You have to check the settings in your IIS.

0

精彩评论

暂无评论...
验证码 换一张
取 消