title: nodejs file uploaded but server terminate and restart it self
body: <p>i have an azure virtual machine and there is a nodejs app within it, 
  i did standard procedure for upload file using<code>fs</code> module, and with <code>multer</code> module, but there are some errors while uploading file , the file is uploaded but the server restarts it self , below are the log : </p>
  
  <p><a href="https://i.stack.imgur.com/uyMzC.png" rel="nofollow"><img src="https://i.stack.imgur.com/uyMzC.png" alt="enter image description here"></a></p>
  
  <p>the code : </p>
  
  <pre><code>const storage = multer.diskStorage({
    destination(req, file, cb) {
      cb(null, config.uploadDir);
    },
    filename(req, file, cb) {
      const mime = file.mimetype.split(`/`);
      const type = mime[1];
      cb(null, `upload-${Date.now()}.${type}`);
    },
  });
  const upload = multer({ storage });
  </code></pre>
  
  <p>i'm using multer as middleware on route.</p>
  
  <pre><code>router.post(`/testUpload`, upload.single(`testUpload`), OrderController.testUpload);
  </code></pre>