ie6 download .tgz not working

  • Thread starter Thread starter coolsai
  • Start date Start date
C

coolsai

Hi All,
Our web application is trying to provide a link to a .tgz file and
provide an option to download the file by clicking the link. when we
click on the link,
I write the file content in ServletOutputStream, set the content type
to "application/octet-stream" and the "Content-Disposition" to
"attachment; filename=\" support.tgz \" ".
mozilla and IE7 show the save as or open buttons, when we select the
save button, they throw the save as window with the expected file name
and extension which is support.tgz. where as in IE6, it is saying the
file type as "un known type" and file name is also changed to url
name.do
Can any one please help me to solve this.
Any thought is welcome.
Thanks!
Sai
 
Hi All,
Our web application is trying to provide a link to a .tgz file and
provide an option to download the file by clicking the link. when we
click on the link,
I write the file content in ServletOutputStream, set the content type
to "application/octet-stream" and the "Content-Disposition" to
"attachment; filename=\" support.tgz \" ".


By default IE ignores file extension specified there and goes by the file extension
implied by the content-type, which in this case would be none.
That would explain your symptom.

mozilla and IE7 show the save as or open buttons, when we select the
save button, they throw the save as window with the expected file name
and extension which is support.tgz. where as in IE6, it is saying the
file type as "un known type" and file name is also changed to url
name.do
Can any one please help me to solve this.
Any thought is welcome.


Hint: There is an override for this in Security Settings.

Thanks!
Sai


Good luck

Robert Aldwinckle
---
 
Back
Top