Machine-readable instructions that direct computer processors to download and render images of cats from the internet.

125 Questions View all

Download header cause zip file to be corrupt

We are making a download manager application ...

Download header cause zip file to be corrupt

Please see the code below

header("Content-type: $mimeType");

header("Content-Transfer-Encoding: Binary");

header("Content-length: ".$size);

header("Content-disposition: attachment; filename=\"".$a['name']."\"");


Answered! View the answer I have this problem too

Is this a good question?

Score 0
Add a comment

1 Answer

Chosen Solution

Please do the following to attempt to repair a Zip file with Windows:

  1. Click Start, click All Programs, and click Accessories
  2. Right click Command Prompt and choose Run as administrator
  3. Change directories to the folder where the corrupted Zip file is located
  4. Type: "C:\Program Files\WinZip\wzzip" -yf

If didn't help, tha't might be your .zip archive was seriously corrupted, you may try ZIP Open File Tool

Was this answer helpful?

Score 1
Add a comment

Add your answer

dwaynebattle will be eternally grateful.
View Statistics:

Past 24 Hours: 1

Past 7 Days: 7

Past 30 Days: 37

All Time: 1,734