troubleshooting Question

IE Browser Prompts Twice on Download

Avatar of paulca
paulca asked on
JavaJava EE
9 Comments1 Solution351 ViewsLast Modified:
I am using IE 6.0.  I have a Java servlet that sets the HTTP to download a file.  Here are the headers that I set:

pResponse.setContentType( "image/tiff" );
pResponse.setContentLength( fileSize );
pResponse.setHeader( "Content-disposition", "attachment; filename=\"Plane.tif\"" );

In Netscape, it works fine when I download.  In IE it works fine when I click the Save As button on the dialog box.  The file is saved correctly to the client machine and may be viewed through a tiff viewer.  If I click the Open button, another dialog box prompts me to Open or Save the file again.  I click Open again and the tiff viewer is launched.  An error message is displayed saying Path Cannot be Found.  Any ideas?

Also, this occurs for all types of files.  (i.e. zip, doc, etc.)


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros