Jump to content

zip file archive

Go to solution Solved by faadibasher,

Given below is a step by step method to repair ZIP files using inbuilt utility available in a WinRAR application or another variants I would suggest you only in case the guide can't help you, you may see it below, last one is the most powerful, but not for all cases…

https://www.openfiletool.com/zipopen.html ZIP Open File Tool

 

  • Start WinRAR application.
  • Go to file menu and click open.
  • Through the find archive window, select the corrupted ZIP file available in your local machine.
  • Click to open.
  • Initialize repair by pressing ALT + R.  A message saying, Repairingfile_name.zip will appear.
  • Once the repair is done, it will ask you to save the repaired ZIP file. Browse a specific location for saving the selected file.
  • Enable Treat the corrupt archive as ZIP box and click OK and click close.

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']."\"");

                            readfile("$pathside");

Link to comment
https://linustechtips.com/topic/508063-zip-file-archive/
Share on other sites

Link to post
Share on other sites

Given below is a step by step method to repair ZIP files using inbuilt utility available in a WinRAR application or another variants I would suggest you only in case the guide can't help you, you may see it below, last one is the most powerful, but not for all cases…

https://www.openfiletool.com/zipopen.html ZIP Open File Tool

 

  • Start WinRAR application.
  • Go to file menu and click open.
  • Through the find archive window, select the corrupted ZIP file available in your local machine.
  • Click to open.
  • Initialize repair by pressing ALT + R.  A message saying, Repairingfile_name.zip will appear.
  • Once the repair is done, it will ask you to save the repaired ZIP file. Browse a specific location for saving the selected file.
  • Enable Treat the corrupt archive as ZIP box and click OK and click close.
Link to comment
https://linustechtips.com/topic/508063-zip-file-archive/#findComment-6790248
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×