Forum Moderators: coopster

Message Too Old, No Replies

IE7 corrupts downloaded zip file?

         

carsten888

7:56 am on Aug 12, 2008 (gmt 0)

10+ Year Member



I got a zip-file which becomes corrupt when downloading with IE7 but not in Firefox.
I got a lot more zip-files which download fine, also in IE7.

I tried:
- recompressing the zip
- other application for zip
- downloading the file with ftp and checked the file is not corrupt online.
- in Firefox all zip's download fine and are not corrupt, so file seems good.
- searched for 2 hours only to find others with this issue, and it's not resolved by far.
see:
<snip>

can anyone help me out?

[edited by: dreamcatcher at 7:17 pm (utc) on Aug. 12, 2008]
[edit reason] No urls please! [/edit]

carsten888

8:17 am on Aug 12, 2008 (gmt 0)

10+ Year Member



I also tried right-click 'save-target-as' in IE7, still nothing.

and a lot more reading on the subject:
<snip>

so it seems a IE7 bug. Does anyone know a workaround?

[edited by: dreamcatcher at 7:17 pm (utc) on Aug. 12, 2008]
[edit reason] No urls please! [/edit]

carsten888

6:38 am on Aug 13, 2008 (gmt 0)

10+ Year Member



The topic concluded that its a bug in IE7. Something to do with that on some servers static files are gz-compressed and so the zip would have a second compression-layer end IE7 forgets to unpack that. But that seems to be in combination with IIS. Fact is that IE7 sees a slightly smaller file-size, which could trigger security-things. If those are switched off (not recomended!) IE7 downloads zip-files fine.

The wierd thing is that I have a page with 4 zip-files. 2 download fine in IE7, the other 2 become corrupt.

[edited by: dreamcatcher at 12:43 pm (utc) on Aug. 13, 2008]
[edit reason] Rant removed. Keep on topic. [/edit]

carsten888

9:22 am on Aug 28, 2008 (gmt 0)

10+ Year Member



when I make direct links to the files, they don't become corrupt, but when I use this script half of them become corrupt when downloaded in ie7.

<?php
header('Content-Disposition: inline; filename="com_pages_and_items_v1-1-0_j1-0-x.zip"');
header('Content-length: "' . filesize(dirname(__FILE__).'/_extensies/com_pages_and_items_v1-1-0_j1-0-x.zip').'"');
header('Content-Type: "application/zip"');
header('Content-Disposition: attachment; filename="com_pages_and_items_v1-1-0_j1-0-x.zip"');
readfile(dirname(__FILE__).'/_extensies/com_pages_and_items_v1-1-0_j1-0-x.zip');
?>

is there a hack to make ie7 understand the mime-type?

What I realy find puzzling is that only SOME zip-files become corrupt, so that makes it the more difficult to pin-point this bug.

jatar_k

1:01 pm on Aug 28, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



this thread seems relevant
[webmasterworld.com...]

carsten888

5:17 pm on Aug 28, 2008 (gmt 0)

10+ Year Member



I tried the suggestions there, but no joy.