# CloudFlare proxy (orange cloud) causing uploading file fail (AWS S3)

**URL:** <https://meta.discourse.org/t/cloudflare-proxy-orange-cloud-causing-uploading-file-fail-aws-s3/227871>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [May 23, 2022, 6:29pm UTC](https://meta.discourse.org/t/cloudflare-proxy-orange-cloud-causing-uploading-file-fail-aws-s3/227871 "2022-05-23T18:29:03Z")\
**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:** [May 23, 2022, 6:37pm UTC](https://meta.discourse.org/t/cloudflare-proxy-orange-cloud-causing-uploading-file-fail-aws-s3/227871/2 "2022-05-23T18:37:24Z")

</div>

> [@dsaver](#):
>
> If I keep the CF proxy off (gray cloud), file upload through S3 works fine.

Right.

> [@dsaver](#):
>
> “Sorry, there was an error uploading that file. Please try again.”

Right.

> [@dsaver](#):
>
> I installed the `- "templates/cloudflare.template.yml"` in the app.yml and rebuilt it to make sure everything is updated.

That just allows Discourse to find the user’s IP address instead of having it show as cloudflare’s IP address.

> [@dsaver](#):
>
> So I’m pretty sure it’s CF proxy causing the failure. How should I make it work?

The best way is to use the gray cloud. But if you want to spend more time on it, you can contrive to disable the various speed-up offerings. There are some topics where it’s discussed.

---

_[View the full topic](https://meta.discourse.org/t/cloudflare-proxy-orange-cloud-causing-uploading-file-fail-aws-s3/227871)._
