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
validator
package would be more adaptable for this stuff, you can useisIn
for this