Skip to main content

HTTP request timeout

This filter can be used to change the cURL timeout for the file upload, useful if you have to upload large files. The time is calculated in seconds.

\add_filter('es_forms_general_http_request_timeout', [$this, 'getHttpRequestTimeout']);

/**
* Change http request timeout.
*
* This filter can be used to change the cURL timeout for the file upload, useful if you have to upload large files.
*
* @return int
*/
public function getHttpRequestTimeout(): int
{
return 50;
}