title: How to remove incomplete uploaded file?
body: <p>I am creating a node server to upload files using 'express','fs' and 'busboy' module. The server is working as expected but when I cancel the upload before complete, the incomplete file is stored in the filesystem. How can I remove the incomplete file? </p>
  
  <pre><code>var express = require("express"),
  fs = require("fs"),
  Busboy = require("busboy");
  app = express();
  app.listen(7000);
  app.get("/", display_form);
  app.post("/upload", function(req, res) {
  var busboy = new Busboy({
      headers: req.headers
  });
  busboy.on("file", function(fieldname, file, filename, encoding, mime) {
      var fstream = fs.createWriteStream("./uploads/" + filename);
      file.pipe(fstream);
      file.on("data", function(chunk) {
          console.log(chunk.length);
      });
      file.on("end", function() {
          console("end");
      });
  
      fstream.on("close", function() {
          fstream.close();
          console("fstream close");
      });
      fstream.on("error", function() {
          console("fstream error ");
      });
  });
  busboy.on("finish", function() {
      console.log("uploaded");
      res.send("file uploaded");
  });
  busboy.on("error", function() {
      console("error busboy");
  });
  req.pipe(busboy);
  });
  </code></pre>