ENOENT: no such file or directory .?

后端 未结 14 1517
梦谈多话
梦谈多话 2020-12-09 17:15

This is error which am getting while post data and file. I have followed \'academind\' tutorial for building Restful API services, also i have been searching answer for this

14条回答
  •  时光说笑
    2020-12-09 17:35

    I think if you work with Windows OS, you should use another methods of Date().i write code like this:

    filename:(req,file,cb)=>{ cb(null,new Date().toDateString()+file.originalname) }
    

提交回复
热议问题