Big problem with uploading files

I want to upload files up to 10GB using regular php form. But after increasing the values ​​below,

upload_max_filesize
post_max_size
php_value upload_max_filesize
php_value post_max_size
request_terminate_timeout
FcgidMaxRequestLen

      

I can upload a file up to 3GB without any problem. But when it goes beyond that, there is a timeout issue when transferring files from the local server to the CDN am using. I also use a progress bar to indicate the download process that stops when there is a timeout problem.

+3


source to share


2 answers


You can set a time limit as follows:

<?php
set_time_limit(0);//unlimited

      

It is not recommended to install unlimited, but you can try it and once you have a good estimate of the time you will edit it.




set_time_limit

(PHP 4, PHP 5) - Limits the maximum execution time
set_time_limit

+1


source


You can try IaaS solutions instead.



For example, our Uploadcare service - supports file uploads up to 5GB and uploaded files are available on CDN instantly. If the size limit is too low, we can increase it for you.

+1


source







All Articles