Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

437
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda