I am currently encountering an issue where the req.file.key property, which used to provide the file path of an uploaded file in S3, is no longer available in the req.file object when using multer-s3. This issue is causing difficulties in accessing the file path of uploaded files in my application.
Steps to Reproduce
Set up multer-s3 for file uploading in a Node.js application with typescript.
Install @types/multer-s3 since there is not inbuilt typescript support
Try to access req.file.key in a file upload route handler.
Expected Behavior
The req.file object should contain the key property, which holds the path of the uploaded file in the S3 bucket.
Actual Behavior
The req.file.key property is not present in the req.file object. Other properties such as location are available, but key is missing.
Description
I am currently encountering an issue where the
req.file.key
property, which used to provide the file path of an uploaded file in S3, is no longer available in thereq.file
object when usingmulter-s3
. This issue is causing difficulties in accessing the file path of uploaded files in my application.Steps to Reproduce
multer-s3
for file uploading in a Node.js application with typescript.req.file.key
in a file upload route handler.Expected Behavior
The
req.file
object should contain thekey
property, which holds the path of the uploaded file in the S3 bucket.Actual Behavior
The
req.file.key
property is not present in thereq.file
object. Other properties such aslocation
are available, butkey
is missing.Environment
multer-s3
version: 3.0.1@types/multer-s3
version: 3.0.3Is this a problem from the type definition file?