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

<div class="post-metadata">

**Author:** ![dsaver](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dsaver](https://meta.discourse.org/u/dsaver)\
**Post date:** [May 23, 2022, 6:29pm UTC](https://meta.discourse.org/t/cloudflare-proxy-orange-cloud-causing-uploading-file-fail-aws-s3/227871/1 "2022-05-23T18:29:03Z")

</div>

Hi, I have a discourse running on a DigitalOcean droplet installed using the market-app option. If I keep the CF proxy off (gray cloud), file upload through S3 works fine.

If I open the CF proxy (orange cloud), file upload fails and the system suggests “Sorry, there was an error uploading that file. Please try again.”

I installed the `- "templates/cloudflare.template.yml"` in the app.yml and rebuilt it to make sure everything is updated.

I have tried and tested a million times, and the only thing that is changed is CF proxy. So I’m pretty sure it’s CF proxy causing the failure. My server gets DDoS often so CF proxy is helpful. How should I make it work?

Thank you very much!

---

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