# S3 uploads for us-east-1 create broken links

**URL:** <https://meta.discourse.org/t/s3-uploads-for-us-east-1-create-broken-links/29314>\
**Category:** Bug\
**Created:** [2015年五月27日 15:26 UTC](https://meta.discourse.org/t/s3-uploads-for-us-east-1-create-broken-links/29314 "2015-05-27T15:26:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianabelson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianabelson/32/116166_2.png) [@brianabelson](https://meta.discourse.org/u/brianabelson)\
**Post date:** [2015年五月27日 15:26 UTC](https://meta.discourse.org/t/s3-uploads-for-us-east-1-create-broken-links/29314/1 "2015-05-27T15:26:21Z")

</div>

I upgraded my version of Discourse yesterday to include the fixes for S3. However, when it creates the URL, it erroneously points to `<bucket-name>.s3-us-east-1.amazonaws.com/path/to/file`. Since `us-east-1` is the “US Standard Region”, you don’t need to actually put the region in the URL. Instead, it should be `<bucket-name>.s3.amazonaws.com/path/to/file`

See [this stack overflow post](http://stackoverflow.com/questions/26604977/url-for-public-amazon-s3-bucket).

---

<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:** [2015年五月27日 15:36 UTC](https://meta.discourse.org/t/s3-uploads-for-us-east-1-create-broken-links/29314/2 "2015-05-27T15:36:36Z")

</div>

Confirmed. Fixing it.

---

<div class="post-metadata">

**Author:** ![brianabelson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianabelson/32/116166_2.png) [@brianabelson](https://meta.discourse.org/u/brianabelson)\
**Post date:** [2015年五月27日 15:42 UTC](https://meta.discourse.org/t/s3-uploads-for-us-east-1-create-broken-links/29314/3 "2015-05-27T15:42:14Z")

</div>

Thanks so much @zogstrip!

---

<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:** [2015年五月27日 15:53 UTC](https://meta.discourse.org/t/s3-uploads-for-us-east-1-create-broken-links/29314/4 "2015-05-27T15:53:47Z")

</div>

Just pushed a fix 🐝

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

---

<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:** [2015年五月27日 15:53 UTC](https://meta.discourse.org/t/s3-uploads-for-us-east-1-create-broken-links/29314/5 "2015-05-27T15:53:49Z")

</div>


