Good nigth to everyone. Im just finishing my first course to start programming and Im having lot of problems to validate an image extension using express-validator.
I need to validate an image to be "PNG", "JPEG", "JPG", or "GIF". I tried a few things but nothing worked. Some advice will be great for me, thank you in advanced.
The
validatorpackage would be more adaptable for this stuff, you can useisInfor this