Skip to content

The authorization mechanism you have provided is not supported #9

Open
@Victorgf87

Description

@Victorgf87

Hello, I am trying to upload a file to S3 using your library? package?
And I'm getting this error:
The authorization mechanism you have provided is not supported. please use AWS4-HMAC-SHA256

I have created the plugin like this:

var storage= new S3({
region: 'eu-west-2',
key:'....',
secret: '...',
bucket: 'bucketname',
acl: 'public-read, write',
signatureVersion: 'v4',
signatureversion: 'v4',
signature: 'v4',
path: (attachment)=> `${path.basename(attachment.path)}`
);

BrandSchema.plugin(crate,{
storage: storage,
directory: 'directory',
fields:{
     image:{}
  }
}

And when I do this, the error appears:

self.attach('image',{
path: 'tmp/image0.png'
},(error)=>{
...
});

Thanks for your support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions