Problems in firefox

Jun 2, 2010 at 7:44 AM
Edited Jun 2, 2010 at 8:14 AM

I have a problem with downloading zip files with firefox on IIS7.

I send files to with response like this:


 Response.BufferOutput = false;
 Response.ContentType = "application/x-zip-compressed";
 Response.AddHeader("Content-Disposition", "attachment;");
+ Zip logic

This thing works on all other browsers just fine. It also works on firefox as long as it's not hosted on IIS7.
But if it's hosted on IIS7 the firefox says the file is XML document and wants to open as such, but if I save it it opens as zip.
If I remove the Response.Flush(); it opens as zip, but with large file you have to wait until the entire zip is downloaded before you see the Open/Save dialogue.
I know that this is not DotNetZip Isue, but I'm hoping some of you had the same problem and found a suiting solution.

Thanks in advance.