Skip to content

How to limit file maxsize and form parse error not handle #324

@clues

Description

@clues

Hi, this a code in my project:
form.uploadDir = conf.getConf().storageRoot;
form.keepExtensions = true;
form.maxFieldsSize = 1 * 1024;
form.encoding = 'utf-8';

1, The property maxFieldsSize is single file max data size? if is, it's not work.
2, If set uploadDir value is unexist directory, progress can't trigger form.on('error',Fun), will
throw a err and i not catch it. So try catch not work also.

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