Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The authorization mechanism you have provided is not supported #9

Open
Victorgf87 opened this issue Jun 6, 2017 · 1 comment
Open

Comments

@Victorgf87
Copy link

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!

@achingbrain
Copy link
Owner

Looks like Knox doesn't support v4 signatures yet: Automattic/knox#273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants