code: function processFile(req, resp, next, downloads) {
      if (!downloads) {
          logMessage('no download directory');
          next();
  
          return;
      }
  
      let form = new formidable.IncomingForm();
      form.uploadDir = downloads;
  
      form.parse(req, function ee(err, _fields, files) {
          if (err) {
              logMessage(err);
          }
  
          resp.writeHead(200, {'content-type': 'text/html'});
  
          let file = files.file.path;
          logMessage(file);
  
          setTimeout(function yz() {
              fs.unlink(file, function zy(err) {
                  if (err) {
                      logMessage(err);
                  }
                  else {
                      logMessage(file + ' deleted');
                  }
              });
          }, 60000);
  
          let fileName = files.file.name;
          req.session.file = file;
          resp.end('<html><body><script>parent.amorphic.prepareFileUpload(\'package\');' +
              'parent.amorphic.uploadFunction.call(null, "' +  fileName + '"' + ')</script></body></html>');
      });
  }
docs: Purpose unknown
  
  @param {unknown} req unknown
  @param {unknown} resp unknown
  @param {unknown} next unknown
  @param {unknown} downloads unknown