# Unable to setup S3 bucket

**URL:** https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372
**Category:** Self-hosting
**Tags:** uploads, s3
**Created:** [January 9, 2025, 4:38pm UTC](https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372 "2025-01-09T16:38:01Z")
**Posts on this page:** 1
**Showing post:** 6

<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: [January 9, 2025, 9:44pm UTC](https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372/6 "2025-01-09T21:44:23Z")

</div>

> [@luigi7up](#):
>
> it just shows the loader without loading anything

I suspect that’s because you didn’t follow the instructions.

> [@Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916/1):
>
> In order to store Discourse static assets in your Object Storage add this configuration on your app.yml under the `hooks` section:
> 
> ```plaintext
> after_assets_precompile:
> - exec:
> cd: $home
> cmd:
> - sudo -E -u discourse bundle exec rake s3:upload_assets
> - sudo -E -u discourse bundle exec rake s3:expire_missing_assets
> 
> ```

> [@luigi7up](#):
>
> My original intention was to use S3 only for storing user uploads,

Yeah. I understand. That’s possible, but you couldn’t make that work. This is the recommended way; it’s well documented and hundreds of people do it this way.

---

_[View the full topic](https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372)._
