Answer the question
In order to leave comments, you need to log in
How to make a file server in Node.js?
There is a code:
const http = require("http");
http.createServer(function(request, response){
response.setHeader("UserId", 12);
response.setHeader("Content-Type", "text/html; charset=utf-8;");
response.write("<input type="file">
<section>
<option>Не выбрано</option>
</section>");
response.end();
}).listen(8000);
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