A client's site uploads files, but if these files are large, the time-out error 503 Service Unavailable is returned.
The hopedagem limits the time out in 300 seconds, is there any way via js or related, to upload without time out? Uploads are videos.
The hosting server does not allow time out editing.
Go to php.ini file and change value with respect to your requirements.
upload_max_filesize
By default this value is 2M. We need to increase it to the maximum size of single file that we want to upload.
max_input_time
This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET. Timing begins at the moment PHP is invoked at the server and ends when execution begins. This would include populating $_FILES superglobal.
memory_limit
This sets the amount of memory a PHP script is allowed to use during its execution. Set this to a value greater than ‘post_max_size’ so that PHP script can load and process the uploaded file.
post_max_size
It defines the maximum size of POST data that PHP will accept. This value should be greater than ‘upload_max_filesize’.
max_execution_time
The time a script is allowed to run after its input has been parsed. This would include any processing of the file itself.
If you are getting memory related error then turn off the output buffering, the PHP configuration directive to be considered is “output_buffering”
output_buffering = Off
Also i add reference of above configuration and you can find more details here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With