Skip to content

Gracefully handle Multer file type errors #4

Description

@kasipavankumar

Issue

Currently we are not handling the exceptions thrown by Multer during the filter file operation. Instead, we just delegate an HTML error to the client.

Point of issue

return callback(new Error(messages.PACKAGE_FILE_TYPE))

Solution

Yet to figure.

Metadata

Metadata

Labels

🐛 BugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions