Answer the question
In order to leave comments, you need to log in
How to limit the possible types of accepted files in node.js?
Hello. I am using node.js with express.js framework.
I would like to know how you can limit the type of files transferred to the server via multipart/form-data?
That is, I need the available formats to be, for example, only jpg, png, mp3, mp4.
And when transferring a file of a different type to the server, an error will be generated? Can the restriction be done at the nginx level, or on the web server itself?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question