-
Notifications
You must be signed in to change notification settings - Fork 193
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
Getting Missing required key 'Key' in params Error, #184
Comments
I am receiving exactly the same error, it's very strange |
Are you using the |
I am! My multer configuration looks as such:
With the key-CB function:
and the S3 client from:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have copied the exact code from the official documentation but still getting this error.
I have tried by installing asw-sdk and aws-sdk-client both give same error.
const upload = multer({ storage: multerS3({ s3, bucket: bucketName, acl: "public-read", metadata: (req, file, cb) => { cb(null, { fieldName: file.fieldname }); }, key: (req, file, cb) => { cb(null, file.originalname); }, }), });
Here clearly i have declared the key but getting the same error. Could anyone please tell me a solution.?
The text was updated successfully, but these errors were encountered: