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

FormData getLength can error out when some file input is unknown stream. #2340

Open
gzz2000 opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@gzz2000
Copy link

gzz2000 commented Mar 14, 2024

return promisify(body.getLength.bind(body))();

https://github.com/form-data/form-data/blob/53adbd81e9bde27007b28083068f2fc8272614dc/lib/form_data.js#L166

This error is not properly handled here.

Btw, thanks for this wonderful project!

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