Skip to content
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

make validation before use multer to handel files #3

Open
binSaed opened this issue May 26, 2021 · 0 comments
Open

make validation before use multer to handel files #3

binSaed opened this issue May 26, 2021 · 0 comments

Comments

@binSaed
Copy link
Owner

binSaed commented May 26, 2021

we need to put this multer middleware at the end
because we need to validate the fields before handel upload files
but if I change multer middleware to the end of req
validation not working because it is not found any fields in req.body
because express does not parse form-data for this we need to put multer middleware at the first
->;(<-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant