[GH-ISSUE #149] Downloading 128Mb zip file stops at 52Mb #107

Closed
opened 2026-03-02 15:55:50 +03:00 by kerem · 5 comments
Owner

Originally created by @mindfragment on GitHub (Apr 2, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/149

TFM v2.3.3
Created a zip through TFM, tried downloading it but it always stopped halfway (52Mb), firefox said "download complete", couldn't open the zip (error). Tried through filezilla the zip downloaded and was error free.
PS: just tried again it with the same 128Mb zip, it stopped at 98Mb
and with a 533Mb zip and also stopped at 98Mb

Originally created by @mindfragment on GitHub (Apr 2, 2019). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/149 TFM v2.3.3 Created a zip through TFM, tried downloading it but it always stopped halfway (52Mb), firefox said "download complete", couldn't open the zip (error). Tried through filezilla the zip downloaded and was error free. PS: just tried again it with the same 128Mb zip, it stopped at 98Mb and with a 533Mb zip and also stopped at 98Mb
kerem 2026-03-02 15:55:50 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@prasathmani commented on GitHub (Apr 3, 2019):

PHP has limits on how long a script can run, and how much memory it can use. It's possible that the script is timing out before it has completed, or is using up too much memory by reading in the large file.

Try tweaking the max_execution_time and memory_limit variables in php.ini. If you don't have access to php.ini, try the set_time_limit and/or ini_set functions.

<!-- gh-comment-id:479456806 --> @prasathmani commented on GitHub (Apr 3, 2019): PHP has limits on how long a script can run, and how much memory it can use. It's possible that the script is timing out before it has completed, or is using up too much memory by reading in the large file. Try tweaking the `max_execution_time` and `memory_limit` variables in php.ini. If you don't have access to php.ini, try the `set_time_limit` and/or `ini_set` functions.
Author
Owner

@mindfragment commented on GitHub (Apr 3, 2019):

Thanks prasathmani. Unfortunately I can't change these parameters.

<!-- gh-comment-id:479629826 --> @mindfragment commented on GitHub (Apr 3, 2019): Thanks prasathmani. Unfortunately I can't change these parameters.
Author
Owner

@alecos71 commented on GitHub (Apr 5, 2019):

@set_time_limit(0);
@ini_set('max_execution_time', 0);

two lines written at top of script should solve the issue...

<!-- gh-comment-id:480210806 --> @alecos71 commented on GitHub (Apr 5, 2019): ``` @set_time_limit(0); @ini_set('max_execution_time', 0); ``` two lines written at top of script should solve the issue...
Author
Owner

@mindfragment commented on GitHub (Apr 5, 2019):

Thanks prasathmani. You mean at the top of the .php file ?
Even if my internet provider (on shared linux) says it is set at 60 and cannot be changed unless I move to a cpanel account ?
Just tried and same issue.

<!-- gh-comment-id:480226550 --> @mindfragment commented on GitHub (Apr 5, 2019): Thanks prasathmani. You mean at the top of the .php file ? Even if my internet provider (on shared linux) says it is set at 60 and cannot be changed unless I move to a cpanel account ? Just tried and same issue.
Author
Owner

@VaelVictus commented on GitHub (May 30, 2019):

Even if my internet provider (on shared linux) says it is set at 60 and cannot be changed unless I move to a cpanel account ?

Then no, they are likely in control of what you can do. You may find it more affordable to just run your own unmanaged server!

<!-- gh-comment-id:497172225 --> @VaelVictus commented on GitHub (May 30, 2019): > Even if my internet provider (on shared linux) says it is set at 60 and cannot be changed unless I move to a cpanel account ? Then no, they are likely in control of what you can do. You may find it more affordable to just run your own unmanaged server!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#107
No description provided.