title: Cannot Post error - node.js - uploading image using multer
body: <p>index.html arrives on the browser by clicking a link called 'spons' from the home page "localhost:9000/" and the url changes to "localhost:9000/spons" , now when i submlit the form , it goes to the url "localhost:9000/spons/uploads" and gives "cannot POST /spons/uploads" , the images folder is in the same directory as the server.js file , can you please help me with this and suggest a solution ?  </p>
  
  <p>this is the index.html file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form name='uploadform' enctype='multipart/form-data' method='post' action='/spons/uploads'&gt;
  &lt;input name='imageupload' type='file'&gt;
  &lt;input type="submit" value="Upload Image" name="submit"&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  
  this is the server.js file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var express = require('express');
  var multer= require('multer');
  
  var upload= multer({dest:'/images'}).single('imageupload');
  
  
  var router = express.Router();
  router.post('/spons/uploads', upload, function(req,res){
    res.end('uploaded');
     }
   );
  
  express().listen(9000);</code></pre>
  </div>
  </div>
  </p>