DEV Community

Discussion on: Cloudinary and Postgresql - Persisting and Retrieving Images Using Nodejs

Collapse
 
okuro3499 profile image
Gideon Okuro

I used this method on my local server it works but when i deploy to heroku i get this error {
"message": "failure",
"error": {
"error": {
"errno": -2,
"code": "ENOENT",
"syscall": "open",
"path": "images/+254 719 240756 20180211_213438.jpg"
}
}
}
I also got this error in local server when the path to the file being uploaded was wrong. How do I solve this for the deployed server