fix: disable default AWS SDK v3 checksum calculation to support S3-compatible storage providers
This commit is contained in:
@@ -33,6 +33,10 @@ export class UploadService {
|
|||||||
secretAccessKey:
|
secretAccessKey:
|
||||||
this.configService.get<string>('AWS_SECRET_ACCESS_KEY') || '',
|
this.configService.get<string>('AWS_SECRET_ACCESS_KEY') || '',
|
||||||
},
|
},
|
||||||
|
// Disable AWS SDK v3 default checksum behavior — DO Spaces / Contabo / MinIO
|
||||||
|
// don't support the new x-amz-checksum-* headers and reject CORS preflights.
|
||||||
|
requestChecksumCalculation: 'WHEN_REQUIRED',
|
||||||
|
responseChecksumValidation: 'WHEN_REQUIRED',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Add custom endpoint for S3-compatible services (Contabo, MinIO, DigitalOcean, etc.)
|
// Add custom endpoint for S3-compatible services (Contabo, MinIO, DigitalOcean, etc.)
|
||||||
|
|||||||
Reference in New Issue
Block a user