Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

426
Views
how to display images from rest api to fronted but it display only in image using multer

it displays only the image logo fronted, not the whole image which I uploaded in my backend in string format please resolve my error what is my problem in my code...

section.js (fronted)

post route in backend and (upper part)

post route in backend and (below part)

Backend main file server.js

when I see it in the browser then it renders me as below

 on browser

please help me to run out of it...

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Your Posts include not url of your image. They include filename. You need to write your full path to the image. Your server is listen in http://localhost:5000 So you need to write:

<img src={`http://localhost:5000/${post.image}`} />
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!