How to limit the possible types of received files in node.js?
Hi all. Use node.js framework express.js.
Hates to find out how you can limit the type of files to be transferred to the server through multipart/form-data?
Ie, I need to accessible formats was such only jpg, png, mp3, mp4.
And when transferred to the file server of a different type, an error will be returned? The restriction can be done at the nginx level, or on the web server?