0

We are using Internet Explorer 11. In one of our webpage we got an anchor link which is pointing to a TIFF file. When I click the anchor link by default it is opening in the same page. We want to download (dialog box to save) instead of opening in the same window.

Is there any configuration available in IE?

Malaiselvan
  • 1,153
  • 1
  • 16
  • 42
  • Related: https://stackoverflow.com/questions/9195304/how-to-use-content-disposition-for-force-a-file-to-download-to-the-hard-drive – Harald K Jun 27 '18 at 08:15

1 Answers1

0

See the Content-Disposition (RFC-2616) HTTP header, and use the value attachment (as opposed to the default value; inline):

If this header is used in a response [...] the user agent should not display the response, but directly enter a `save response as...' dialog.

Example:

Content-Disposition: attachment; filename="filename.tif"

See also Content-Disposition (MDN):

The first parameter in the HTTP context is either inline (default value, indicating it can be displayed inside the Web page, or as the Web page) or attachment (indicating it should be downloaded; most browsers presenting a 'Save as' dialog, prefilled with the value of the filename parameters if present).

Harald K
  • 26,314
  • 7
  • 65
  • 111