title: Can we configure multer to not store files locally and only for using req.files.image.path?
body: <p>My application's need is as follows:
  I upload the image to Cloudinary and store the url of image in my mongodb database.</p>
  
  <p>To upload the image to cloudinary, I needed to give the file path, and for that, I am using multer.I use the statement:</p>
  
  <p>app.use(multer({ dest: './uploads/'}));</p>
  
  <p>The problem I face is that, everytime I upload an image from my local system to the database on Cloudinary, a local copy gets created in './uploads/'.I want this to not happen, since my images are there on Cloudinary.</p>
  
  <p>I read the <a href="https://github.com/expressjs/multer">documentation of multer</a> where it says:</p>
  
  <blockquote>
    <p>Multer accepts an options object, the most basic of which is the dest property, which tells Multer where to upload the files. In case you omit the options object, the file will be renamed and uploaded to the temporary directory of the system.</p>
  </blockquote>
  
  <p>I am unable to make out if that temporary upload space needs cleaning or if it is taken care of.My images are uploaded on Cloudinary.I used multer only for getting :</p>
  
  <p>req.files.photo.path</p>
  
  <p>to work.Is there any other way to do the same or if multer can be configured in a way to not store images to my local system?</p>