Node/Multer Get Filename

前端 未结 6 1830
甜味超标
甜味超标 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条回答
  •  北恋
    北恋 (楼主)
    2021-02-03 22:19

    using request.file.filename

    fieldname Field name specified in the form
    originalname Name of the file on the user's computer encoding Encoding type of the file
    mimetype Mime type of the file
    size Size of the file in bytes

提交回复
热议问题