Closed simran-k closed 3 years ago
Can I have a response on this, please? It feels impossible to use this package :'(
Hmm 🤔
It might be that you need to have new
before multerS3
, i.e. storage: new multerS3({
.
We should probably throw an error to make that more clear though...
Happy to accept PR that throws error if new
is omitted
This is what the error looks like:
TypeError: this.s3.upload is not a function at S3Storage. (/home/simran/Downloads/NODE-BACKEND/node_modules/multer-s3/index.js:172:26)
at /home/simran/Downloads/NODE-BACKEND/node_modules/multer-s3/index.js:58:10
at S3Storage.getContentType (/home/simran/Downloads/NODE-BACKEND/node_modules/multer-s3/index.js:8:5)
at /home/simran/Downloads/NODE-BACKEND/node_modules/multer-s3/index.js:55:13
at end (/home/simran/Downloads/NODE-BACKEND/node_modules/run-parallel/index.js:16:15)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
Call:
Why do I get this ?