S3
S3 copied to clipboard
knox and aws objects empty
I'm trying to get access to the aws client, but a console.log of S3 (after setting config) shows this:
{ config:
{ key: AWS_KEY,
secret: AWS_SECRET,
bucket: AWS_BUCKET,
denyDelete: true },
knox: {},
aws: {},
rules: {} }
I need access to the aws object to add a param for server-side encryption, which I think I can do if I can get that aws client.
Any help appreciated.
S3.aws should give you the aws object. Does that work?
No, it comes back as an empty object: {}
Hi, I had that same problem when I first installed the package. Removing it and reinstalling fixed it.
I have an issue deleting files, both knox and aws objects come out empty too https://github.com/Lepozepo/S3/issues/132
I am also having the same issue. Even after removing and installing it back.
{ config:
{ key: '',
secret: '',
bucket: 'cas',
region: 'ap-sot-1' },
knox: {},
aws: {},
rules: {} }