# 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:** 3

<div class="post-metadata">

### Author: ![hel\_Sinki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hel_sinki/32/525916_2.png) [@hel\_Sinki](https://meta.discourse.org/u/hel_Sinki)
#### Post date: [2 באפריל,‏ 2026,‏ 3:32pm 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/3 "2026-04-02T15:32:49Z")

</div>

Thanks, this fixed it for me.

I applied the workaround directly in `app.yml` via `after_bundle_exec`, pinned `aws-sdk-s3` to `1.177.0` and `aws-sdk-core` to `3.215`, then rebuilt the container. After that, manual backups to Cloudflare R2 succeeded again, and the previously failing browser uploads started working again as well.

In my case the failures were showing up as `multipart upload failed: undefined method 'downcase' for nil` on `aws-sdk-s3 1.182.0`.

Appreciate the workaround.

---

_[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)._
