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

Question: Is there a way to premature end parsing #366

Open
brupxxxlgroup opened this issue Sep 11, 2024 · 3 comments
Open

Question: Is there a way to premature end parsing #366

brupxxxlgroup opened this issue Sep 11, 2024 · 3 comments
Labels

Comments

@brupxxxlgroup
Copy link

brupxxxlgroup commented Sep 11, 2024

After I have received the first file I would like to stop busboy and not process any other field or file. Is there a manual way how to do it? I don't want to set any limits btw.

@mscdex
Copy link
Owner

mscdex commented Sep 11, 2024

Just stop writing to the busboy stream.

@brupxxxlgroup
Copy link
Author

And how you do that when the HTTP request ist the incoming source?

@mscdex
Copy link
Owner

mscdex commented Sep 11, 2024

I'm not sure what you mean. The source of your data doesn't matter, all you need to do is stop calling .write() on your busboy object either explicitly or implicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants