# AWS S3 subfolder support

**URL:** https://meta.discourse.org/t/aws-s3-subfolder-support/44315
**Category:** Feature
**Created:** [May 16, 2016, 3:30pm UTC](https://meta.discourse.org/t/aws-s3-subfolder-support/44315 "2016-05-16T15:30:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tim.smith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tim.smith/32/119954_2.png) [@tim.smith](https://meta.discourse.org/u/tim.smith)
#### Post date: [May 16, 2016, 3:30pm UTC](https://meta.discourse.org/t/aws-s3-subfolder-support/44315/1 "2016-05-16T15:30:11Z")

</div>

First, I am looking to see if there are any existing solutions to allow discourse to use a subfolder within an S3 bucket instead of using the bucket root. I haven’t been able to find anything that would provide such a feature. The only thing I found was [this post from 2014](https://meta.discourse.org/t/multiple-discourse-instances-using-the-same-s3-bucket/22602) that doesn’t have any reasonable suggestions.

Second, I wanted to see if anyone at Discourse is already working on subfolder support or if it’s on the official roadmap to be implemented. I checked the upcoming features, planned features, and requested features sections, but I couldn’t find anything relevant.

Finally, if there’s no good answers to the above inquiries, I’d like to discuss the possibility of discourse accepting a PR for subfolder support. I’ve read through the contributing guidelines and know I need to complete the CLA first, but I wanted to make sure that this feature would be accepted in a PR, assuming the code passes reviews. My company would really like this feature and we’re willing to develop it, but we’re not particularly interested in maintaining our own fork.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 16, 2016, 6:42pm UTC](https://meta.discourse.org/t/aws-s3-subfolder-support/44315/2 "2016-05-16T18:42:28Z")

</div>

Sure, we’d happily merge a PR adding support for subfolder when using S3 ❤

We haven’t done it yet because it was only brought up by our customers **once** (last week actually).

---

<div class="post-metadata">

### Author: ![tim.smith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tim.smith/32/119954_2.png) [@tim.smith](https://meta.discourse.org/u/tim.smith)
#### Post date: [May 16, 2016, 8:56pm UTC](https://meta.discourse.org/t/aws-s3-subfolder-support/44315/3 "2016-05-16T20:56:49Z")

</div>

That’s great news! Appreciate the quick reply.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [August 15, 2016, 5:47am UTC](https://meta.discourse.org/t/aws-s3-subfolder-support/44315/4 "2016-08-15T05:47:11Z")

</div>

Was working on another feature and had to implement this. 🙂 Please try it out and report back if you find any 🐛

[https://github.com/discourse/discourse/commit/aa5de3c40acebe3f3577a977cf57ed7630a4b740](https://github.com/discourse/discourse/commit/aa5de3c40acebe3f3577a977cf57ed7630a4b740)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [September 2, 2016, 3:28pm UTC](https://meta.discourse.org/t/aws-s3-subfolder-support/44315/5 "2016-09-02T15:28:56Z")

</div>


