Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Same error |
Beta Was this translation helpful? Give feedback.
0 replies
-
remove that fileUpload middleware in app.use . only multer need to upload file , that if you try to upload in s3 bucket . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks,
Am having the error above come up while trying to have Multer handle a file upload to my local storage, which I'll also later then push to S3 storage (once I get past the first hurdle).
I've wound up resorting to just using the same set up as shown in the simple example at https://www.npmjs.com/package/multer but am still having no luck.
Here's my express set up in case it's an issue with another package I'm depending on;
My React form component for selecting the files (the commented out authCode input is irrelevant for now):
and my express handling the post request
Some pages seemed to suggest it was caused by the bodyParser, but it wasn't clear why or what was wrong with my set up. Any tips would be greatly appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions