Eduardo Fuerte
asked on
What must be done to make codeigniter force_download to download large files?
Hi Experts!
I'm facing problems when trying to download a 267Mb file by using Codeigniter's force_download.
When downloading smaller files, no problems.
After a long time, the name of the file to be downloaded appears but without the size and after download
it the file has 0KB.
After download:
The code I used:
Thanks in advance!
I'm facing problems when trying to download a 267Mb file by using Codeigniter's force_download.
When downloading smaller files, no problems.
After a long time, the name of the file to be downloaded appears but without the size and after download
it the file has 0KB.
After download:
The code I used:
$data = file_get_contents(base_url('arquivos/cesans/e_pub/' . $arquivo));
force_download($arquivo, $data);
Thanks in advance!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
After tests 1024M make it run OK!
ASKER
In fact is an eBook ! The others are much smaller treating agro subjects...but this is about the 100 better experimental receipts developed in our experimental kitchen...rsrsrs
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the assistance!
ASKER
I did it before...
The directive in PHP.ini I changed was:
Open in new window
It was 128M before and causes a memory error.
Maybe it's still insuficient, I'm going to increase it to 1024M
Am I in the right way? Another directive must be changed too?
The file has 267M.