How to specify the right path when deleting a file from disk with unlink?

后端 未结 0 541
生来不讨喜
生来不讨喜 2020-11-30 02:01

I want to delete an image saved in my project directory, in my mern app. For that I used fs.unlink().

Photo.findByIdAndDelete(req.body.photoId)
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题