Skip to content

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

Closed
@Portur

Description

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

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions