|
1
|
If you're using the [S3 File Module Provider](../../../infrastructure-modules/file/s3/page.mdx) to store files in Cloudflare and you get a checksum error similar to the following: |
|
2
|
|
|
3
|
```bash |
|
4
|
Header 'x-amz-checksum-crc32' with value '0wpgCA==' not implemented |
|
5
|
``` |
|
6
|
|
|
7
|
This is due to a recent update in the AWS SDK client that sets the ChecksumAlgorithm by default, which Cloudflare doesn't support. To resolve this issue, add in your `package.json` the following resolution for the `@aws-sdk/client-s3` package: |
|
8
|
|
|
9
|
```json |
|
10
|
{ |
|
11
|
"resolutions": { |
|
12
|
"@aws-sdk/client-s3": "3.726.1" |
|
13
|
} |
|
14
|
} |
|
15
|
``` |
|
16
|
|
|
17
|
The version must be less than `3.729.0`. After adding the resolution, install the dependencies again: |
|
18
|
|
|
19
|
```bash npm2yarn |
|
20
|
npm install |
|
21
|
``` |