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

could not create stream like fs.createReadStream #3

Open
taoqf opened this issue Jul 10, 2017 · 2 comments
Open

could not create stream like fs.createReadStream #3

taoqf opened this issue Jul 10, 2017 · 2 comments

Comments

@taoqf
Copy link

taoqf commented Jul 10, 2017

stream-utils/contentstream#6
https://github.com/paulja/memory-streams-js/issues/11
I have tried them all. they all get the same exception at server side

Error: MultipartParser.end(): stream ended unexpectedly: state = PART_DATA

Server Side

import { IncomingForm, Files } from 'formidable';
const form = new IncomingForm();   //create upload form
form.encoding = FILE_ENCODE;
form.keepExtensions = true;
form.multiples = true;
console.log(`file parse start!`);
form.parse(req, function (err, fields, files) {
// get Exception err =  Error: MultipartParser.end(): stream ended unexpectedly: state = PART_DATA
});
@sapinder
Copy link

I am facing the same issue, is any able to find the work around?

@taoqf
Copy link
Author

taoqf commented Jan 2, 2019

I am sorry, I could not remember.

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

No branches or pull requests

2 participants