xxxxxxxxxx
resp, err := client.PutObject(context.TODO(), &s3.PutObjectInput{
Bucket: &bucketName,
Key: &objectName,
Body: bytes.NewBuffer([]byte(`example object!`)),
ContentLength: 15, // length of body
}, s3.WithAPIOptions(
v4.SwapComputePayloadSHA256ForUnsignedPayloadMiddleware,
))
To disable the client computing the payload hash and use [Unsigned Payload](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html) request signature add [v4.SwapComputePayloadSHA256ForUnsignedPayloadMiddleware](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/signer/v4#RemoveComputePayloadSHA256Middleware).