# How to set S3 only save user upload files

**URL:** <https://meta.discourse.org/t/how-to-set-s3-only-save-user-upload-files/321926>\
**Category:** Self-hosting\
**Created:** [August 16, 2024, 3:50am UTC](https://meta.discourse.org/t/how-to-set-s3-only-save-user-upload-files/321926 "2024-08-16T03:50:57Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Yt.w](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yt.w/32/348367_2.png) [@Yt.w](https://meta.discourse.org/u/Yt.w)\
**Post date:** [August 16, 2024, 9:10am UTC](https://meta.discourse.org/t/how-to-set-s3-only-save-user-upload-files/321926/5 "2024-08-16T09:10:26Z")

</div>

Yes, I am using cdn for S3.

But I still wondering, if  
does `discourse server(asia) → cdn → users(asia)` faster than `S3(US) → cdn → users(asia)`?

I saw there is a parameter named DISCOURSE\_S3\_UPLOAD\_BUCKET, it looks like a solution to me but after I replace DISCOURSE\_S3\_BUCKET by it. I cannot rebuild my discourse

---

_[View the full topic](https://meta.discourse.org/t/how-to-set-s3-only-save-user-upload-files/321926)._
