Skip to content

AWS S3 upload access denied ACL public-read #5868

@lowki

Description

@lowki

Describe the bug
When I try to upload a file with AWS S3 upload provider, I have a "denied access" error.

Steps to reproduce the behavior

  1. Use npm v12.16.1
  2. npx create-strapi-app my-project --quickstart
  3. cd my-project
  4. yarn add strapi-provider-upload-aws-s3
  5. Create settings file at extensions/upload/config/settings.json
{
    "provider": "aws-s3",
    "providerOptions": {
      "accessKeyId": "<accesskeyid>",
      "secretAccessKey": "<secretaccesskey>",
      "region": "eu-west-3",
      "params": {
        "Bucket": "<bucket-name>"
      }
    }
  }
  1. Go to Media Library in admin panel and upload a file

Expected behavior
The file should be uploaded

Screenshots
image

image

System

  • Node.js version: 12.6.1
  • NPM version: 6.13.4
  • Strapi version: 3.0.0-beta.20
  • Database: sqlite
  • Operating system: Archlinux

Additional context
I've tested my AWS credentials through aws cli to ensure it have access to upload to the bucket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersissue: enhancementIssue suggesting an enhancement to an existing featureseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solve

    Type

    No type

    Projects

    Status

    Archive

    Status

    Fixed/Shipped

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions