Help and Support
 

powered byLive Search

FIX: Content-Disposition: Attachment Saves Wrong Filename for Unknown Extension

Article ID:262042
Last Review:May 11, 2006
Revision:2.0
This article was previously published under Q262042
On This Page

SYMPTOMS

Developers can return a file from Internet Information Server with a "Content-disposition: attachment" header to force a "Save As" operation by Internet Explorer:
Content-disposition: attachment; filename=newName.zzz
				
If the filename contains an extension unknown to the client computer that is receiving the file (an extension not mapped to any MIME type) Internet Explorer prompts the user to save the file with a double extension. In this example, "newName.zzz" would be saved as "newName.zzz..zzz".

Back to the top

RESOLUTION

There is no known resolution for Internet Explorer 5.0.

Back to the top

STATUS

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

This bug was corrected in Internet Explorer 5.01.

Back to the top

MORE INFORMATION

Steps to Reproduce Behavior

1.Save a text file on the root of your Web server and name it "File.txt".
2.Go into Internet Services Manager in Internet Information Server, right-click the document, and select Properties.
3.Go to the HTTP Headers tab and click Add. In the Custom Header Name box, type Content-disposition. In the Custom Header Value box, type attachment; filename=newName.zzz.
4.Use Internet Explore 5 to access the text file through your Web server. You will be prompted to save it to disk.
5.Examine the file on disk. It will be named "newName.zzz..zzz".

Back to the top

REFERENCES

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
http://msdn.microsoft.com/ie/ (http://msdn.microsoft.com/ie/)

http://support.microsoft.com/iep (http://support.microsoft.com/iep)

Back to the top


APPLIES TO
Microsoft Internet Explorer 5.0

Back to the top

Keywords: 
kbbug kbfix kbie501fix kbnavigation KB262042

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.