How to fix 'TypeError: Cannot read property 'path' of undefined' in Nodejs(Multer)

前端 未结 1 1366
野的像风
野的像风 2021-01-27 11:31

I am trying to upload the file but there is \'TypeError: Cannot read property \'path\' of undefined\'. Is there any way to solve this?

exports.postimport = funct         


        
相关标签:
1条回答
  • 2021-01-27 11:53

    The reason you might be getting path of undefined may be that your destination directory (i.e path to your uploads folder) is not correct.

    0 讨论(0)
提交回复
热议问题