Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefully handle Multer file type errors #4

Open
kasipavankumar opened this issue Dec 26, 2021 · 0 comments
Open

Gracefully handle Multer file type errors #4

kasipavankumar opened this issue Dec 26, 2021 · 0 comments
Assignees
Labels
🐛 Bug Something isn't working

Comments

@kasipavankumar
Copy link
Member

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.

@kasipavankumar kasipavankumar added the 🐛 Bug Something isn't working label Dec 26, 2021
@kasipavankumar kasipavankumar self-assigned this Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant