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
fileUploader not working - Error: Unexpected end of form #850
Comments
Everything is working if path added to ignore list or fileUploader set to false. |
Validation for the form-data can't be handled with this library, it's a headache to use another validation library to handle APIs specifically which are of form-data. I urge the community to handle the form-data requests as well
Issue Actual behavior Expected behavior |
I am watching this issue as well. Have just ignored the relevant path for now. |
Using version
^5.0.4
Describe the bug
File upload is failing and throws an error:
To Reproduce
Steps to reproduce the behavior.
When specifying middleware with
fileUploader: true
:and using below curl:
curl -X POST -F "file=@report.pdf" http://localhost:8001/docs/upload
Actual behavior
File uploading is not working.
Expected behavior
File uploading is working as expected.
Examples and context
The text was updated successfully, but these errors were encountered: