Quote:
Originally Posted by Lizard King
Andrew my members today informed me a strange situation. Normally they never faced a problem like this but a member uploaded a 123 mb file from ftp to the server and added it to links section. When someone clicks on the link it opens the link in a new window and wait like 15-20 seconds then it start downloading and when it reachs 48kb it says completed. Do you have any idea what can cause this ?
When I try to download from ftp i have no problems.
|
Yes, the problem is related to how you provide access.
If you have force_redirect=0 (the default value of the parameter on the admin page), then downloads are mediated by the script. In that case, large files can use up all the cpu time available to the script (typically 30 seconds). If you set force_redirect=1, then there is no problem with downloading large files, but the location of the file becomes visible to the user. It's a question of how important you find security versus cpu time. If you want to keep file locations secure, then you need to permit php scripts to use sufficient cpu time to read and re-transmit the file. If you prefer to limit cpu usage and are not concerned about security, then change the setting of force_redirect.
OK?
Andrew