-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Multipart: Boundary not found #304
Comments
The main problem is the user must not pass the Line 321 in 0e449a7
The headers should be passed using My command here is correct, it is a breaking change if you force the user to pass the |
I'll produce a fix shortly. |
@tc-root-user Can you please check with 5.2.1 (with removed explicit header)?` |
Working as expected! |
Prerequisites
Fastify version
3.24.1
Plugin version
5.2.0
Node.js version
16.5.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Ubuntu 20.04
Description
When the file limit size is set, then headers are a mandatory prop. The code should be something like:
The issue begins with passing those content-type at the request (as they are mandatory now), then the server responds with error 500 and the message "Multipart: Boundary not found".
Steps to Reproduce
1 - Make a file upload;
2 - Set some limit to the upload throught req.file(PROPS);
3 - Verify that the headers are mandatory now;
4 - Pass the respective header throught request;
5 - Try to do the upload;
6 - Observe that the server responds with error 500 with the message "Multipart: Boundary not found".
Expected Behavior
The upload happens normally respecting the file size limit.
The text was updated successfully, but these errors were encountered: