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
Hi! @types/busboy has this typing:
@types/busboy
file: (name: string, stream: Readable, info: FileInfo) => void;
But if field name is not set, then it comes as undefined, not as string in this callback
HTTP example:
> POST /api/files/upload HTTP/1.1 > Host: 127.0.0.1:7100 > Cookie: user_token=del > Content-Type: multipart/form-data; boundary=X-INSOMNIA-BOUNDARY > User-Agent: insomnia/2023.5.8 > Accept: */* > Content-Length: 215 | --X-INSOMNIA-BOUNDARY | Content-Disposition: form-data; name="xxx" | blah | --X-INSOMNIA-BOUNDARY | Content-Disposition: form-data; name=""; filename="1.txt" | Content-Type: text/plain | 555 | --X-INSOMNIA-BOUNDARY--
bb.on('file', (name, file, info) => { console.log('name', name); console.log(typeof name); // undefined
The text was updated successfully, but these errors were encountered:
I don't maintain typings for any of my projects, so you would need to contact whoever is maintaining those for busboy.
busboy
Sorry, something went wrong.
No branches or pull requests
Hi!
@types/busboy
has this typing:But if field name is not set, then it comes as undefined, not as string in this callback
HTTP example:
The text was updated successfully, but these errors were encountered: