title: how to get only the name of the image and not the whole path in Express js
body: <p>I want to add only the name in the mysql table 
  if I try to utilser req.files.name his works but the problem that the name of the image is encoded in the file</p>
  
  <pre><code>app.use(express.bodyParser({KeepExtensions: true, 
                              uploadDir: path.join(__dirname, '/picture')}));
  
  exports.insertPhoto = function(req, res){
     db.addPhoto({name: req.body.name, photo: req.files.picture.path});
     res.redirect('/album');  
  };
  </code></pre>