Issues with File Storage S3: non-AWS S3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thanh
    Junior Member
    • Nov 2024
    • 8

    Issues with File Storage S3: non-AWS S3

    Hello, I'm using with file storage with aws but now I move to other cloud with file storage s3 non aws.

    here my config: in /data/config.php

    Code:
    return [
    'cacheTimestamp' => 1742415842,
    'useCache' => true,
    'defaultFileStorage' => 'AwsS3',
    'awsS3Storage' => [
    'bucketName' => 'crm-bk',
    'path' => 'upload',
    'credentials' => [
    'key' => 'AKxxxxxxxxxxxxxxxxxx',
    'secret' => 'TQXpxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    ],
    'region' => 'us-east-1',
    'endpoint' => 'https://s3.1.cloud.abctelecom.com',
    ],
    but I still get error with default s3 from aws:

    Code:
    ERROR: (301) HTTP 301 returned for "https://crm-bk.s3.us-east-1.amazonaws.com/upload/67da61e74f5e601e2". Code: PermanentRedirect Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. Type: Detail: ; POST /Attachment; line: 402, file: /data/apps/vendor/async-aws/core/src/Response.php [
    someone please help me?
    Last edited by thanh; 03-20-2025, 01:20 AM.
  • thanh
    Junior Member
    • Nov 2024
    • 8

    #2
    someone please help?

    Comment

    Working...