![]() ![]() Providing a direct link to the zip file works fine (so I know the issue isnt with the zip file itself) but the force_download function in the controller appears to have an issue with larger files or is there a setting I am missing somewhere that is forcing a limit somehow? PHP 7.1. $zipdlpath = FCPATH."uploads/zipped/".$lastbasket I have also tried using the following code: $this->load->helper("download") MP3 is a digital audio format without digital rights management (DRM. Force of Nature Explicit Tank Ma137 ratings See all 8 formats and editions Streaming Unlimited MP3 9.49 Listen with our Free App Audio CD 7.69 5 Used from 10.20 20 New from 7.23 Vinyl 23.99 1 New from 23.99 Buy the CD album for 7.69 and get the MP3 version for FREE. $fileContent = file_get_contents($zipdlpath) įorce_download($lastbasket, $fileContent) ![]() $zipdlpath = base_url()."uploads/zipped/".$lastbasket I have increased the memory_limit up to 1024M but its no different.īelow is the code I want working: $this->load->helper("download") The zip file gets created and MP3 files added to it by another area of code. Windows reports the zip file which is only 61Kb is invalid when trying to open it. The download attempts to start and appears as though it keeps starting over and over a couple of times and shows as failed with Chrome indicating that the zip file is incomplete. ![]() When using force_download to download a zip file my code works for a zip file that is 268Mb (31 MP3 files) but not for a zip file that is 287Mb (32 MP3 files), the difference being 1 extra MP3 file added to the zip. ![]()
0 Comments
Leave a Reply. |