Skip to content

Commit b788f2b

Browse files
authored
fix(.net): fix example for .NET
When using latest version of AWS.S3 SDK the DisableDefaultChecksumValidation = true also needs to be provided else the SDK still tries to sign the payload.
1 parent 1f7deb2 commit b788f2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/content/docs/r2/examples/aws/aws-sdk-net.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The [PutObjectAsync](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/S3/M
8484

8585
:::caution
8686

87-
`DisablePayloadSigning = true` must be passed as Cloudflare R2 does not currently support the Streaming SigV4 implementation used by AWSSDK.S3.
87+
`DisablePayloadSigning = true` and `DisableDefaultChecksumValidation = true` must be passed as Cloudflare R2 does not currently support the Streaming SigV4 implementation used by AWSSDK.S3.
8888

8989
:::
9090

@@ -95,7 +95,8 @@ static async Task PutObject()
9595
{
9696
FilePath = @"/path/file.txt",
9797
BucketName = "sdk-example",
98-
DisablePayloadSigning = true
98+
DisablePayloadSigning = true,
99+
DisableDefaultChecksumValidation = true
99100
};
100101

101102
var response = await s3Client.PutObjectAsync(request);

0 commit comments

Comments
 (0)