O'Reilly logo
  • David Kit thinks this is interesting:

req.files.file.name

From

Cover of Web Development with MongoDB and Node - Third Edition

Note

You may have to cast/convert this to a string using the String(...) function

Also, since the uploaded file in the temp directory doesn't carry the extension, you may want to use the req.files.file.originalname instead