Skip to content

Commit b5d34af

Browse files
committed
fix: remove requestChecksumCalculation for S3 client on production
This partially reverts commit 2de6f26. Fixes the following error on file uploads: [Nest] 5 - 05/06/2025, 12:59:58 AM ERROR [FileService] Error uploading file: [Nest] 5 - 05/06/2025, 12:59:58 AM ERROR [FileService] InvalidArgument: Unsupported header 'x-amz-checksum-crc32' received for this API call. It seems like the Backblaze B2 API is not compatible with this header.
1 parent 46221b2 commit b5d34af

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

server/src/file/file.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ export class FileService {
7676
const s3Client = new S3Client({
7777
region: region,
7878
endpoint: endpoint,
79-
requestChecksumCalculation:
80-
process.env.NODE_ENV === 'development' ? 'WHEN_REQUIRED' : undefined,
8179
credentials: {
8280
accessKeyId: key,
8381
secretAccessKey: secret,

0 commit comments

Comments
 (0)