TIP: HTML “File Download” dialog customization

NOTE: This only applies to Internet Explorer 6 with XP SP2 and later.

Once in a while you would like to become a tyrant when it comes to what your site’s visitors can do with the content, file links in particular.

OK, not a tyrant per se, but you want to limit operations for some file types.

  • Can user open a file from IE after download?
  • Can user save a file from IE after download?

“Why would I want to do that?” – you may ask.

There is a small example for you:

Opening of CSV file in Excel and saving it after would actually adjust file structure since Excel treats some of the values differently which otherwise present in the CSV file. 0 (zero) may be converted and saved as an empty space, etc.

What can you do?

Remember, IE saves a temporary copy of the file in TEMP location and then open it from there. Your visitor may not be to comfortable looking for the file in some “strange” places. So, to avoid situation above you just have to be that “tyrant” and not allow opening a file without saving it first in proper place.

From this MSDN article:

To Hide “Open” button in “File Download” dialog place the following META tag into your page header:

<meta name="DownloadOptions" content="noopen" />

Similarly you can hide “Save” button

<meta name="DownloadOptions" content="nosave" />

Note: This option may not work properly within IFRAME element.

This entry was posted in Web-design and tagged , , , , . Bookmark the permalink.

3 thoughts on “TIP: HTML “File Download” dialog customization”

  1. amit says:

    I am trying to use but its not working

  2. amit says:

    I am trying to use nosave option with my asp page but its not working

  3. What browser do you try it in?

Leave a Reply

  • About

    From a junior developer through Sr Manager position, I was always interested in new technologies. Passionate speaker, IT junky, developer, architect, team lead, and development manager - many hats, one goal - making software better and being closer to people’s needs. For the most part I am using my blog as a scratch pad, writing small articles on things which I came across, was asked about more then once, and which would otherwise require additional research again and again.

  • Testimonials

    I’m a huge fan of this theme. I’ve got more than 90,000 pictures in my gallery3 running on a Ubuntu 11.10 desktop. It’s only for family photos. The GD theme is by far the most polished theme, easy to use … Continue reading


    The greydragon theme is fantastic. It’s clean, stable and feature rich. It took me a while to decide to move to G3 but with a there like this one, I could no longer resist. Thanks!

  • Categories

%d bloggers like this: