Netlify can not find updload folder in the root directory

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&#39

I don’t know if anyone can help

1 Like

Hi there, glad you found us :wave: before we can help you, we need a little more information on the issues you are facing.

First, have you looked through this resource? It is a compilation of all of our build and deploy resources. This is a good starting point.

If you have worked through those guides and are still encountering issues please share the following information:

  • the name of your build instance: “example-jones.netlify.com
  • a full copy of your recent deploy log
  • 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?)

Thanks!

did you find the solution for this? i’m getting the same error.

Hi, @RiyaMunjal. The likely explanation can be found in this support guide:

You cannot run an express server at Netlify unless it has be modified to run as a serverless function.

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?

Did you read the post that @luke linked to?

Where is your express server running?