diff --git a/databox/api/src/Integration/Phrasea/Expose/ExposeClient.php b/databox/api/src/Integration/Phrasea/Expose/ExposeClient.php index 352ae0d3a..433b4ee90 100644 --- a/databox/api/src/Integration/Phrasea/Expose/ExposeClient.php +++ b/databox/api/src/Integration/Phrasea/Expose/ExposeClient.php @@ -261,7 +261,7 @@ private function putPart(string $url, mixed $handleFile, int $partSize, int $ret $retryCount--; try { return $this->uploadClient->request('PUT', $url, [ - 'body' => fread($handleFile, 10 * 1024 * 1024), // 10Mo + 'body' => fread($handleFile, $partSize), ])->getHeaders(); } catch (\Throwable $e) { if ($retryCount == 0) {