Hi I am new to node js and I want to upload a file to a server using jade, node js and express.
I recently created the following form using the jade template .
//HTML for creating the video uploader extends layout block content h1= title form(name="uploadVideo",method="post",action="/uploadVideo") input(type="file", name="filePath") button#btnSubmit(type="submit") Upload
I added the following to the app.js
app.post('/uploadVideo',function(req,res) {
console.log("Came here !!");
});
However, clicking on the Upload button does nothing. What can I change to make it work ?