Specify region for s3 (#8251)

This commit is contained in:
rogerswingle 2017-05-01 13:22:20 -04:00 committed by Torkel Ödegaard
parent 88dd8af4ce
commit 02455753b5

View File

@ -78,5 +78,5 @@ func (u *S3Uploader) Upload(imageDiskPath string) (string, error) {
return "", err
}
return "https://" + u.bucket + ".s3.amazonaws.com/" + key, nil
return "https://" + u.bucket + ".s3-" + u.region + ".amazonaws.com/" + key, nil
}