S3 uploads for us-east-1 create broken links

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.

1 Like

Confirmed. Fixing it.

Thanks so much @zogstrip!

Just pushed a fix :bee:

https://github.com/discourse/discourse/commit/83d2b59fc3f23909b4259f0bb8bd5f56973d3885

1 Like