0
Answered

large file download

philippe.perrot 6 months ago updated by philibuster 6 months ago 4

Hello, 

When I download a folder with some large files inside, Filerun zip the folder before the download and once it downloaded, the zip can't open. It seems corrupted. It is a recurrent problem. Do you have an idea? 

Answered

You either configure PHP (and possibly CGI/FPM and the HTTP server) to allow long execution times (max_execution)time), with large memory usage (memory_limit), or... zip the folder before hand, and download the zip from the server instead of having PHP struggle to zip on the fly.

Hi,

I change like this :

max_execution_time = 0

max_input_time = -1

memory_limit = -1

But the problem is still here...

Hi,

I change like this :

max_execution_time = 0

max_input_time = -1

memory_limit = -1

But the problem is still here...

Those values are way over the top. Here, check the FileRun PHP configuration docs, section PHP file upload handling:

PHP file upload handling

file_uploads            = On
upload_tmp_dir          = /path/to/your/temp/folder/
upload_max_filesize     = 20M
post_max_size           = 20M

Note: Replace /path/to/your/temp/folder/ with an actual path.

“post_max_size” needs to have at least the same value as “upload_max_filesize”. If you go with larger values than 20M keep in mind that your server might have other limitations in place, which might prevent FileRun from uploading file in larger chunks. If having troubles uploading larger files, always set the two settings lower not higher, as low as 2M. If you are sure that your server can receive larger pieces of files, than increasing these two values will allow for a faster throughput.