Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/content/docs/r2/examples/aws/aws-sdk-net.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ static async Task ListObjectsV2()
The [PutObjectAsync](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/S3/MIS3PutObjectAsyncPutObjectRequestCancellationToken.html) and [GetObjectAsync](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/S3/MIS3GetObjectAsyncStringStringCancellationToken.html) methods can be used to upload objects and download objects from an R2 bucket respectively.

:::caution

`DisablePayloadSigning = true` must be passed as Cloudflare R2 does not currently support the Streaming SigV4 implementation used by AWSSDK.S3.

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

```csharp
Expand All @@ -95,7 +93,8 @@ static async Task PutObject()
{
FilePath = @"/path/file.txt",
BucketName = "sdk-example",
DisablePayloadSigning = true
DisablePayloadSigning = true,
DisableDefaultChecksumValidation = true
};

var response = await s3Client.PutObjectAsync(request);
Expand Down
Loading