code: function uploadRouter(downloads, req, res, next) {
      if (req.originalUrl.match(/amorphic\/xhr\?path\=/) && url.parse(req.originalUrl, true).query.file && req.method === 'POST') {
          processFile(req, res, next, downloads);
      }
      else {
          next();
      }
  }
docs: Purpose unknown
  
  @param {unknown} downloads unknown
  @param {unknown} req unknown
  @param {unknown} res unknown
  @param {unknown} next unknown