-
Notifications
You must be signed in to change notification settings - Fork 165
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
form-data file is empty with node version 14.1.0 #226
Comments
Hi @chwo thank you for the report. It is indeed a bug due to some streams changes in Node.js 14. I am working to get it all fixed up. You can look though expressjs/connect-multiparty#29 if you wanted to know about some of the background, but otherwise I'll use this issue as the tracker for the Node.js 14 fix in multiparty itself 👍 |
Hi, Can someone please update when this issue would be fixed? I see that the form.on('close') fires twice since node 14. Once with empty files and then with files populated. Thank you for looking into this. |
Hi @dougwilson, looks like you fixed this, any eta on a new release for this and connect-multiparty? |
Hi @barisusakli indeed, I fixed both issues with the Node.js changes: max size limit broken and files empty. The first change was an issue with a dependency being broken and it looks like it will just never be fixed, so that was a bit more involved change to test. I think it is working well, but if not we'll just field any reported bugs. I'm going to land them here now, sorry for the delay. |
The fix is merged into |
@dougwilson from my testing our upload tests pass by using the latest code from multiparty with node 14.6.0 and connect-multiparty 2.2.0 |
Published as patch version 4.2.2 |
👍 waiting on connect-multiparty |
@barisusakli it is picked up automatically as the |
streams changes in Node.js 14 dougwilson commented on 28 Jul 2020 Published as patch version 4.2.2 pillarjs/multiparty#226
Description
I am doing a
multipart/form-data
POST Request with fields and a file in the body.When I try to access the file in the
form.parse
function, thefiles
property is empty.I tried debugging it and noticed that
multiparty/index.js
Line 134 in f4c2ea6
is called before
multiparty/index.js
Line 130 in f4c2ea6
This order occurs with node version
14.1.0
whereas for example with node version12.0.0
the order is the opposite and thefiles
property contains the file.Environment
4.2.1
14.1.0
The text was updated successfully, but these errors were encountered: