Node/Multer Get Filename

前端 未结 6 1846
甜味超标
甜味超标 2021-02-03 21:45

I am using the following to upload files to a directory via Multer. It works great, but I need to perform some actions after upload that require the name of the file I just post

6条回答
  •  猫巷女王i
    2021-02-03 22:20

    I found the answer on github, you have access to it in res.req.file.filename See there for more informations https://github.com/expressjs/multer/issues/302

提交回复
热议问题