Keyword

Download file size limit

  • Abdul Basith
  • Abdul Basith's Avatar Topic Author
  • Offline
  • New Member
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
Last edit: 8 years 9 months ago by Abdul Basith.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #145450 by Krikor Boghossian
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?

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
  • Abdul Basith's Avatar Topic Author
  • Offline
  • New Member
More
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
echo JFile::read($file);
. I replaced that line with the below code to handle big files. Then now it's working fine.
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #145473 by Krikor Boghossian
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.


Powered by Kunena Forum