I'm trying to upload the photo from postman to the folder, but I got "no such file or directory". I guess it might be because I wrote :
fs.readFileSync("./uploads")
I have searched about ways to change the path, so I tried:
fs.readFileSync(path.resolve(__dirname, './uploads'))
Or:
fs.readFileSync(path.resolve(__dirname, 'uploads'))
Still doesn't work, does anyone know how to fix this? Thanks!!!!