- Posts: 2
COMMUNITY FORUM
Download file size limit
- Abdul Basith
- Topic Author
- Offline
- New Member
Less
More
8 years 9 months ago - 8 years 9 months ago #145440
by Abdul Basith
Download file size limit was created by Abdul Basith
Hi,
I uploaded a file of size 90MB. When I try to download it from the user view, it's not downloading and not giving any error, it just started downloading and stuck there. Is there any download file size limit need to set somewhere? please help. Upto 55 MB it's downloading without any problem.
Thanks
I uploaded a file of size 90MB. When I try to download it from the user view, it's not downloading and not giving any error, it just started downloading and stuck there. Is there any download file size limit need to set somewhere? please help. Upto 55 MB it's downloading without any problem.
Thanks
Last edit: 8 years 9 months ago by Abdul Basith.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 9 months ago #145450
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Download file size limit
K2 does not have a download limit.
However this sounds more like a setup issue. Did you check your error log, or consult with your hosting provider?
However this sounds more like a setup issue. Did you check your error log, or consult with your hosting provider?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Abdul Basith
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
8 years 9 months ago #145451
by Abdul Basith
Replied by Abdul Basith on topic Download file size limit
Hi,
Thanks for your support. Actually the issue is in the download model function. By default it's having. I replaced that line with the below code to handle big files. Then now it's working fine.
Thanks for your support. Actually the issue is in the download model function. By default it's having
echo JFile::read($file);
set_time_limit(0);
$file_i = @fopen($file,"rb");
while(!feof($file_i)){
print(@fread($file_i, 1024*8));
ob_flush();
flush();
}
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 9 months ago #145473
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Download file size limit
This is related to a memory limit, but since this works, you are fine as long as you keep backups of your edits.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.