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.
#2

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

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




Theme © iAndrew 2016 - Forum software by © MyBB