# S3 图片上传被拒绝，但备份上传正常

**URL:** <https://meta.discourse.org/t/s3-image-upload-access-denied-while-backups-upload-working-fine/104071>\
**Category:** Self-hosting\
**Tags:** s3\
**Created:** [2018年十二月12日 03:02 UTC](https://meta.discourse.org/t/s3-image-upload-access-denied-while-backups-upload-working-fine/104071 "2018-12-12T03:02:28Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2019年一月3日 22:26 UTC](https://meta.discourse.org/t/s3-image-upload-access-denied-while-backups-upload-working-fine/104071/16 "2019-01-03T22:26:10Z")

</div>

> [@RBoy](#):
>
> Is there a topic or post that elaborates on this

I’m currently updating our various S3 related Howto topics so that they reflect the latest changes in Discourse and S3. I’ll notify you when that’s done.

Essentially you need to either use two different buckets or a prefix for the backup bucket. For example, the following combinations will work:

1. Different buckets
  - `s3_upload_bucket`: `my-upload-bucket`
  - `s3_backup_bucket`: `my-backup-bucket`

2. Different prefixes
  - `s3_upload_bucket`: `my-bucket/uploads`
  - `s3_backup_bucket`: `my-bucket/backups`

3. Prefix for backups
  - `s3_upload_bucket`: `my-bucket`
  - `s3_backup_bucket`: `my-bucket/backups`

---

_[View the full topic](https://meta.discourse.org/t/s3-image-upload-access-denied-while-backups-upload-working-fine/104071)._
