Node Multer unexpected field

后端 未结 11 1510
情歌与酒
情歌与酒 2020-12-12 12:17

I\'m working on uploading a file to my app using the multer npm module.

The multer function I have defined is to allow a single file uploaded to the file system. Ev

11条回答
  •  伪装坚强ぢ
    2020-12-12 13:07

    I solve this issues looking for the name that I passed on my request

    I was sending on body:

    {thumbbail: }
    

    and I was expect to:

    upload.single('thumbnail')
    

    so, I fix the name that a send on request

提交回复
热议问题