I am sending the following form to the Node server:
<form id="test_form" action="http://localhost:8080/upload" method="post" enctype="multipart/form-data"> <input type="file" name="filetoupload"><br> <input type="submit"> </form> It is necessary for the server to receive the same thing, but at the same time the page did not reload when the form was submitted. How to implement? Which way to dig?
new FormData- Qwertiy ♦target="_blank") oriframe. You can also just teach the server to respond with code 204, then the page will not reload - Alexey Ten