Welcome Guest, Not a member yet? Register   Sign In
.zip .cpgz loop on force_download
#1

[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.


Messages In This Thread
.zip .cpgz loop on force_download - by El Forum - 03-24-2009, 08:17 AM
.zip .cpgz loop on force_download - by El Forum - 03-24-2009, 08:25 AM
.zip .cpgz loop on force_download - by El Forum - 03-24-2009, 08:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB