From 9241e6c69c4959c3e4701754da04112e358582e6 Mon Sep 17 00:00:00 2001 From: devarr1994 Date: Mon, 1 Dec 2025 11:12:40 +0000 Subject: [PATCH] changes to set default checksum option as CRC32C --- 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 4766c0ac2ee8..a965a563c77b 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 1a2205307d45..2229c2bc4c9c 100644 --- a/Storage/tests/Unit/Connection/RestTest.php +++ b/Storage/tests/Unit/Connection/RestTest.php @@ -593,6 +593,16 @@ public function validationMethod() true, true, false + ], [ + ['validate' => null], + true, + true, + 'crc32' + ], [ + ['validate' => ''], + true, + true, + 'crc32' ] ]; }