Skip to content

[v1.x] bad content-type: application/javascript - cannot handle the error #571

Description

@Portur

Hi,

Formidable throws when content-type is application/javascript OR application/XML.


Looking at the code I can see this is not supported
image


This specifically is using postman
image

Odd to throw, but I can't catch the error.

const form = formidable({ multiples: true, uploadDir: 'files/' });
form.on('error', (e) => {   //no such listener
    e
})

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions