CodeIgniter Forums
.zip .cpgz loop on force_download - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: .zip .cpgz loop on force_download (/showthread.php?tid=17050)



.zip .cpgz loop on force_download - El Forum - 03-24-2009

[eluser]dobbler[/eluser]
Hi,

I've integrated uber-uploader into my app and all is working fine. However when trying to download a zip (44Mb) it comes down as 233 bytes and starts the .cpgz loop (On a mac, I double click it and it creates a file zipfile.zip.cpgz, double click that and it creates zipfile.zip again.. on a pc it gives a corrupted error)

Anyone know if I'm missing anything on the force_download, read_file or other? or has anyone experienced the same thing? Any help will be greatly appreciated. Please see following code used for downloading.

Code:
// Get document path from db
$docPath = $this->group_mdl->get_doc_path($groupDocId);

// Read document data into string
$docData = read_file($docPath['full_path']);
                
force_download($docPath['file_name'], $docData);

Thanks,

Rob.


.zip .cpgz loop on force_download - El Forum - 03-24-2009

[eluser]TheFuzzy0ne[/eluser]
Is there any chance of a link for the file download?


.zip .cpgz loop on force_download - El Forum - 03-24-2009

[eluser]dobbler[/eluser]
Hi TheFuzzyOne,

Thanks for your reply..

Unfortunately not, it's part of a secure Medical site.. Is there any more info I can give you?