# Backups to Cloudflare R2 fail during multipart upload with aws-sdk-s3 1.182.0 (undefined method 'downcase' for nil)

**URL:** https://meta.discourse.org/t/backups-to-cloudflare-r2-fail-during-multipart-upload-with-aws-sdk-s3-1-182-0-undefined-method-downcase-for-nil/399768
**Category:** Bug
**Created:** [2 באפריל,‏ 2026,‏ 5:07am UTC](https://meta.discourse.org/t/backups-to-cloudflare-r2-fail-during-multipart-upload-with-aws-sdk-s3-1-182-0-undefined-method-downcase-for-nil/399768 "2026-04-02T05:07:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2 באפריל,‏ 2026,‏ 2:49pm UTC](https://meta.discourse.org/t/backups-to-cloudflare-r2-fail-during-multipart-upload-with-aws-sdk-s3-1-182-0-undefined-method-downcase-for-nil/399768/2 "2026-04-02T14:49:26Z")

</div>

I haven’t looked at this in a while, but here’s how I’ve dealt with this in the past:

> [@Can't rebuild due to AWS SDK gem bump and new AWS Data Integrity Protections](https://meta.discourse.org/t/cant-rebuild-due-to-aws-sdk-gem-bump-and-new-aws-data-integrity-protections/354217/49):
>
> But I did for a site that’s using Backblaze. I created a template I put in /root/aws-revert-template.yml with this: # This template reverts aws-sdk-s3 to a version that works with backblaze params: home: /var/www/discourse hooks: after\_bundle\_exec: - exec: cd: $home cmd: - bundle config set frozen false - "sed -i 's/gem \"aws-sdk-s3\", require: false/gem \"aws-sdk-s3\", \"1.177.0\", require: false/' Gemfile" - bundle update aws-sdk-s3 …

They don’t consider it a #Contribute > Bug because they don’t pretend to support every S3-not-so-compatible service on the planet.

I can’t remember just which sites I was doing this for, but I don’t remember changing anything about this recently, so I’m thinking that this is still the “best” workaround.

I think there were some other topics about this when AWS released the new library that broke everyone else’s offerings.

---

_[View the full topic](https://meta.discourse.org/t/backups-to-cloudflare-r2-fail-during-multipart-upload-with-aws-sdk-s3-1-182-0-undefined-method-downcase-for-nil/399768)._
