Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

428
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda