-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
IncomingForm end event emitted twice (at least) #810
Comments
I 'll have a look |
Interesting. @dresende when 3 fields, does it emit 3 times? Try mixing fields types too: 3 fields and 1 file - emit 3-4 times? Should add test in Hm. |
No, it seems to just emit 2 events, no matter if I have 2 or 3 fields. I was using multipart for form-data (fields and files) but had no files. I might have hit a very very specific case, or not.. I use formidable for years now but I updated recently from |
Just tested with only 1 field and it still emits 2 events. And... this only occurs for |
Thanks for testing. Hm, yea.. definitely strange. We should look and follow the whole flow more carefully . |
Same issue happened with me also. |
I see the same issue also on version |
Published as 3.2.3 |
the problem is in this part should be so once instead of on |
@marcorocci true but the library should also not emit end twice to begin with |
That's obvious and that's how people worked around it until it is/was fixed. |
Just about nothing is "obvious" to everybody. The original comment was intended to be helpful and could have been to folks who hadn't encountered that idea yet; no need to be dismissive. |
That's obvious or a paradox? 😂 |
once done <<<< yes that ok as API ..... end is used for like body parts then flags the next part .... |
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
Printed "end" twice.
What result did you expect?
Print "end" once. I tested with a simple Postman form with 2 fields.
I bypassed the error using
form.once("end")
but this doesn't feel right.The text was updated successfully, but these errors were encountered: