Shahrukhkhan N. Pathan

Results 1 comments of Shahrukhkhan N. Pathan

This worked for me: ``` fileFilter: function (req, file, cb) { if (!file.originalname.match(/\.(jpg|jpeg|png|gif)$/)) { return cb(new Error('Only image files are allowed!')); } cb(null, true); } ```