Help with Laravel R2 Integration - "Header 'x-amz-checksum-crc32' Not Implemented"
Hi,
I'm integrating Cloudflare R2 into a Laravel project using the league/flysystem-aws-s3-v3 adapter. However, when attempting to upload a file to R2 for testing, I encounter the following error:
I’m testing with this simple code:
Issue:
The error indicates that the header x-amz-checksum-crc32 is not implemented. I suspect this might be due to the AWS SDK adding headers that R2 does not support.
Question:
Is there a way to configure the AWS SDK or Laravel Flysystem to disable this header?
Has anyone else encountered this issue, and how did you resolve it?
Thanks in advance for your help! 😊
1 Reply
Hey, this is caused due to the recent change in the AWS SDKs. You can find a solution here: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-php/