Skip to content

Instantly share code, notes, and snippets.

@bobmurdoch
bobmurdoch / gist:958b2cbe54f35b3ee0f1c6736e7f2676
Last active January 24, 2025 19:03
Using Laravel's S3 filesystem driver with Backblaze B2, R2 Cloudflare and possibly others -- Unsupported header 'x-amz-checksum-crc32'

Up until recently it has been fairly simple to make a config/filesystem.php entry for Backblaze B2 and just set the use_path_style_endpoint to true, and set the endpoint based on guides you can find online to connect via their S3 compatible API.

Changes recent to the time of writing this in aws-sdk-php added a x-amz-checksum-crc32 header to write calls, and this header
causes B2 calls to fail. I assume the same is true for Cloudflare R2 but haven't confirmed yet, and possibly other s3 compatible API providers. (Cloudflare mentions it at the top of this page at the time of writing) https://developers.cloudflare.com/r2/examples/aws/aws-sdk-php/

I don't believe custom adapter config cant be set in the filesystem.php config file based on my tests. If I'm wrong, would be great to hear how in a response commment.

@bobmurdoch
bobmurdoch / tailwind_color_variables.scss
Created October 8, 2018 20:26
Tailwind CSS colors as Sass variables
$black: #22292f;
$grey-darkest: #3d4852;
$grey-darker: #606f7b;
$grey-dark: #8795a1;
$grey: #b8c2cc;
$grey-light: #dae1e7;
$grey-lighter: #f1f5f8;
$grey-lightest: #f8fafc;
$white: #fff;
$red-darkest : #3b0d0c;