Can Multer work without being a middleware?
See original GitHub issueHello guys!
Has multer
a function to upload the file only based on the request
? I mean being a simple function without being a middleware function using next
.
I would like to know if there is something like that to achieve this: graphql/express-graphql#123.
Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Upload to S3 using multer without a middleware function
Option 1 - Use multer-s3-transform middleware to handle S3 upload with file transformations, like image resizing using sharp.
Read more >Upload to S3 using multer without a middleware function
5. 2. I am using multer to upload media to my s3 bucket. I am using multer-s3 as a middleware to upload media...
Read more >Express multer middleware
Multer is a node. js middleware for handling multipart/form-data , which is primarily used for uploading files. It is written on top of...
Read more >Multer: Easily upload files with Node.js and Express
Multer is a Node.js middleware for handling multipart/form-data that makes the otherwise painstaking process of uploading files ...
Read more >Can multer work without the express framework ? : r/node
Well multer creates express middlewares, but you can easily create an adapter around it and use it outside of an express context. All...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wanted to know the same thing and tried what @LinusU recommended and got the same error.
I went back to look at the usage in the readme which shows:
So you actually need to call
You can call the middleware function with just an empty object as
res
: