node-streamifier icon indicating copy to clipboard operation
node-streamifier copied to clipboard

could not create stream like fs.createReadStream

Open taoqf opened this issue 8 years ago • 2 comments

https://github.com/stream-utils/contentstream/issues/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
});

taoqf avatar Jul 10 '17 13:07 taoqf

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

sapinder avatar Dec 28 '18 13:12 sapinder

I am sorry, I could not remember.

taoqf avatar Jan 02 '19 01:01 taoqf