Answer the question
In order to leave comments, you need to log in
How to determine the file type on the server when transferring it with socket.io?
I transfer the file to the server using socket.io.
Determining the format on the client side is not a problem, however, a bunch of bits come to the server, and it is not clear how to determine which format with their help.
Send like thissocket.emit('send-file', file.name, buffer);
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