title: app.use(multer({dest:'./uploads/'}).single('photo')) return "Undefined is not a function"
body: <p>I am trying to use multer to upload file</p>
  
  <p>I use latest multer (v.0.18)</p>
  
  <p>I configure the app this way </p>
  
  <pre><code>  var express = require('express')
                  , multer = require('multer')
                  , app = express() 
                  , routes = require('./routes');
  
    app.use(multer({ dest: './uploads/',
         rename: function (fieldname, filename) {
         return filename+Date.now();
        },
          onFileUploadStart: function (file) {
          console.log(file.originalname + ' is starting ...')
        },
          onFileUploadComplete: function (file) {
          console.log(file.fieldname + ' uploaded to  ' + file.path)
          done=true;
        }
   }).single('photo'));
  </code></pre>
  
  <p>
  and it keeps returning "Undefined is not a function"
  (referring to the .single() )</p>
  
  <p>if I remove the .single to 
  <code>
  multer({ dest: 'uploads/' }); </code></p>
  
  <p>this error message is gone, but of course the file itself becomes undefined then nothing is uploaded.</p>
  
  <p>Work on it a day long, man!
  obviously need help :'(</p>