Open
Description
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
Labels
No labels