From 4e8c1ec87dc7ae1a1b032379e50caa79526479a3 Mon Sep 17 00:00:00 2001 From: salilg-eng Date: Tue, 14 Apr 2026 06:40:55 +0000 Subject: [PATCH] fix: Set CRC32C as the default checksum option --- Storage/src/Connection/Rest.php | 2 +- Storage/tests/Unit/Connection/RestTest.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Storage/src/Connection/Rest.php b/Storage/src/Connection/Rest.php index afa1dde86e7..9db411a5643 100644 --- a/Storage/src/Connection/Rest.php +++ b/Storage/src/Connection/Rest.php @@ -479,7 +479,7 @@ private function resolveUploadOptions(array $args) $args += [ 'bucket' => null, 'name' => null, - 'validate' => true, + 'validate' => 'crc32', 'resumable' => null, 'streamable' => null, 'predefinedAcl' => null, diff --git a/Storage/tests/Unit/Connection/RestTest.php b/Storage/tests/Unit/Connection/RestTest.php index 5f0d2bf4e07..4960da40839 100644 --- a/Storage/tests/Unit/Connection/RestTest.php +++ b/Storage/tests/Unit/Connection/RestTest.php @@ -646,6 +646,16 @@ public function validationMethod() true, true, false + ],[ + ['validate' => null], + true, + true, + 'crc32' + ], [ + ['validate' => ''], + true, + true, + 'crc32' ] ]; }