Skip to content

MulterError: File too large not thrown when fileSize is floating point #1132

@drichardcarl

Description

@drichardcarl

When uploading files larger than 1MB with limits: { fileSize: 1024 } I get the expected MulterError: File too large error but when using limits: { fileSize: 1024.1 } the file upload succeeds which should not.

Expectation: Multer should be able to handle unexpected config inputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions