I am trying to upload images using multer on express-js server. It works find in the local host. However, when I push the code for deployment, upon uploading image it return status 500. When use postman it return this Error: ENOENT: no such file or directory, open 'useruploads/2022-05-30T12:59:15.011ZMohammadamin-resume.png'
any error messages you have received in your terminal window or in the developer console (looks like you shared one above, are you receiving this message consistently?)
Actualyy, i m using multer to upload images on express-js server. it works fine on local host.
but when i deply the code using netlify, upon uploading the image , postman shows
ENOENT: no such file or directory, open ‘…/client/public/uploads/1712374323708cinema3.jpg’",
what is the solution for this and why am i getting this error?