i have a express app and am using multer to uploads files, the problem is when i running the app in the production server with PM2 the multer upload file gave me an error:
"Error: ENOENT: no such file or directory, open 'uploads/img.png' at Error (native)"
but when i run it with "Debug=projectname:* npm start" its just work fine.
note that i already create uploads directory with all the permissions "read and write for anyone".
(sorry for my bad english)