I’m using AWS S3 SDK .Net and using TransferUtility instead of PutObject. Seems to be the new way of uploading.
Can only get it working if I set DisablePayloadSigning = true
and DisableMD5Stream = true
which I assume disable checksum-calculation of the data to be uploaded?
Also tried to set ChecksumAlgorithm = ChecksumAlgorithm.CRC32 | SHA256 | CRC32C | SHA1
but that doesn’t work.
var fileTransferUtility = new TransferUtility(s3Client);
var uploadRequest = new TransferUtilityUploadRequest {
BucketName = Config.bucketName,
FilePath = filePath,
Key = objectKey,
DisablePayloadSigning = true
};
fileTransferUtility.Upload(uploadRequest);
Error:
Expected hash not equal to calculated hash
Work fine using Backblaze B2