Cannot display image from backend folder

Viewed 19

Now I can upload photos by the image name on the frontend web page to the "uploads" folder in my backend, the "uploads" folder

And now I want to display my uploaded images on the frontend at the same time, how should I modify my code?

Part of the frontend code:

{postnews.map((news, key) => (
                <div key = {key}>
                    <img src={`/../../../backend/uploads/${news.newsimage}`} alt="..."/>

Thanks!!

0 Answers
Related