BUG: Open and Save As Dialog Boxes Use Decorated File Names for Files with Multiple Periods (325630)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5.5 SP2

This article was previously published under Q325630

SYMPTOMS

When you are streaming a file back as an attachment and that file contains two periods, the Save As dialog box may have unnecessary bracket decorations in the default file name.

CAUSE

This is a confirmed bug in Internet Explorer. Internet Explorer decorates the file name by inserting "[n]" decorations before the first period. Internet Explorer then tries to undecorate by looking for that pattern immediately before the last period of the file name. For files with two periods in the file name, this process is not successful.

RESOLUTION

To work around this bug, you must not allow files with two periods. You can also manually change the file name to remove the brackets.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

When you are streaming a file back from an Active Server Page (ASP) URL by using the "content-disposition" header with a filename parameter set to a file name with two periods (for example, Testfile.doc.txt), the Save As dialog box (and the same dialog box before that, if there is one) may still contain the cache file name decoration (for example, Testfile[1].doc.txt).

Steps to Reproduce the Behavior

  1. Create an ASP page file that is named Test.asp by using the following code:
    <%
    Response.AddHeader "Content-Disposition", "attachment;filename=testfile.doc.txt"
    %>
    hello
    					
  2. Put the ASP page file on a Web server and then locate that ASP page.
  3. Click Save when you are prompted to Open or to Save.

    Notice that the file name still has the bracket decorations.

REFERENCES

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbbug KB325630