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' ] ]; }