-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Handling multipart form-data (file-uploads) #386
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
Comments
Any of the above multupart parsers work, I needed to replace the express body-parser with the json and urlencoded ones. I think this fix is already in place for the generator since the following commit. 8dc2f1e |
Sorry @harunhasdal I have the same problem but I am not able to fix it neither with the new express configuration. |
I ended up using busboy, not as middleware though. I used busboy events to process the uploaded files instead of using as middleware and have req.files. I couldn't make the middleware (neither busboy nor multer) to work alongside body-parser. It's either one or the other in my experience, but then again i might be wrong. Best thing to do is to debug the request to see how these middleware interact in case you need to use multer. |
The problem is that body-parser included in the generator is ad old version. |
Is there any guidance on which multipart parser to use with the generator for file uploads? Or a file upload endpoint generation option in the roadmap?
I've tried multer, multiparty, connect-busboy so far, but didn't have any success.
Having similar issues pointed out at #315
The text was updated successfully, but these errors were encountered: