Skip to content

could not create stream like fs.createReadStream #3

@taoqf

Description

@taoqf

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
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions