File upload failed on non US bucket region

Created on 9 September 2015, over 9 years ago
Updated 4 June 2024, 8 months ago

Installed amazons3 7.x-2.1-beta1
applied the neccessary patches
valid S3 access credentials
region: eu-central-1

I get the

The file could not be uploaded.

when trying to upload a file.
After I changed the default region value line 78 in src/StreamWrapperConfiguration.php
from
'region' => 'us-east-1',
to
'region' => 'eu-central-1',
the Upload works ( removing too) .
But to open a file the url is https://s3.amazons3.com/<bucket>/<file>
and I get the error

<Error>
<Code>PermanentRedirect</Code>
<Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message>
</Error>

The access works fine to https://s3.eu-central-1.amazons3.com/<bucket>/<file>

Thanks in advance.

💬 Support request
Status

Fixed

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024