diff --git a/inc/Data/Driver/HttpDriver.php b/inc/Data/Driver/HttpDriver.php index 2e379f27..ff78ec9d 100644 --- a/inc/Data/Driver/HttpDriver.php +++ b/inc/Data/Driver/HttpDriver.php @@ -115,7 +115,7 @@ class HttpDriver { $opt = (\PHP_MAJOR_VERSION >= 8 && \PHP_MINOR_VERSION >= 2) ? \CURLOPT_XFERINFOFUNCTION : \CURLOPT_PROGRESSFUNCTION; \curl_setopt_array($this->inner, [ \CURLOPT_NOPROGRESS => false, - $opt => fn($res, $next_dl, $dl, $next_up, $up) => (int)($dl <= $this->max_file_size), + $opt => fn($res, $next_dl, $dl, $next_up, $up) => (int)($dl > $this->max_file_size), \CURLOPT_FAILONERROR => true, \CURLOPT_FOLLOWLOCATION => false, \CURLOPT_FILE => $fd,