J
J
Johniq2017-10-08 15:06:52
Node.js
Johniq, 2017-10-08 15:06:52

How to get an image from a folder created by multer?

I use https://github.com/expressjs/multer to upload images, the server and client folders are in different places, I use concurrently to run both, the folder that multer creates is in the src of the client (I use create-react-app), respectively when uploading images, I have a path to it (which I think to save in the database), only this path is relative to my server folder, so if I give this path to the client it will be wrong, how can I be? Please help me figure out how to get this right :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question