We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When extracting the filename parameter for a multipart request, currently, if the filename is an empty string, Busboy does not emit a file event.
filename
file
This is because when checking for a filename here:
else if (disp.params.filename)
that line will evaluate to false since ('' == true) evaluates to false.
('' == true)
I suggest changing that line to read:
else if (disp.params.filename !== undefined)
Hope this helps!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When extracting the
filename
parameter for a multipart request, currently, if the filename is an empty string, Busboy does not emit afile
event.This is because when checking for a filename here:
else if (disp.params.filename)
that line will evaluate to false since
('' == true)
evaluates to false.I suggest changing that line to read:
else if (disp.params.filename !== undefined)
Hope this helps!
The text was updated successfully, but these errors were encountered: