alimladha8 / ziparchive

Automatically exported from code.google.com/p/ziparchive
0 stars 0 forks source link

Zip Error #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am trying to create a zip file using your class. It does create a zip file, 
however double clicking 
will just cause another zip file with a cpgz ending to be created. So if I 
double click Example.zip, 
Example.zip.cpgz will be created. If I double click that Example 1.zip will be 
created, its just 
looping. Why is this?

this is the code I am using:

    ZipArchive*archive = [[ZipArchive alloc] init]; 
    [archive addFileToZip:[self fileName] newname:[docwindow title]];
    [archive CloseZipFile2];        
    [archive CreateZipFile2:@"/Users/David/Desktop/Archive.zip"];   
    //my error handler
    if( ![archive CloseZipFile2] )
    {
        NSLog(@"Error while attemtping to ZIP file.");
    }       
    [archive release];  

Original issue reported on code.google.com by pripyat1...@gmail.com on 22 Apr 2010 at 6:37

GoogleCodeExporter commented 8 years ago
Check file permissions. I think they should be 777.

Original comment by sartaz...@gmail.com on 10 Aug 2010 at 1:16

GoogleCodeExporter commented 8 years ago

            header("Pragma: public");
            header("Expires: 0");
                     header("Content-type: application/octet-stream");
            header("Content-Disposition: attachment; filename=$archive_file_name");
            header("Content-Transfer-Encoding: binary");
            header("Content-Length: ".filesize($archive_file_name));

            readfile($archive_file_name) or die("File not found.");
            unlink($archive_file_name);
            exit;

Also check the permissions for the folder

Original comment by sreenuva...@gmail.com on 10 Aug 2010 at 1:30

GoogleCodeExporter commented 8 years ago
Does ZipArchive Support AES encryption ?

Original comment by kayyali....@gmail.com on 7 Oct 2010 at 10:12