S3 uploads for us-east-1 create broken links

(Brianabelson) #1

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.

(Régis Hanol) #2

Confirmed. Fixing it.

(Brianabelson) #3

Thanks so much @zogstrip!

(Régis Hanol) #4

Just pushed a fix :bee:

(Régis Hanol) #5