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

120
Vistas
React post request to API does not show image that user has added to form

I have created a back-end API using PostgreSQL and a front-end using React. I have created a form for the user to post a new review. The post request works but the image does not come through! screenshot of missing photo:
screenshot of missing photo.

When I inspect the missing photo in Chrome dev tools, the web URL is there, it just doesn't show the image!

This is where the user inputs the image URL...

// inside form

<label>Photo URL:</label>
     <input
         type='url'
         value={newReviewPhoto}
         id='reviewPhoto'
         name='reviewPhoto'
         placeholder='photo URL'
         onChange={handlePhotoChange} />
<br />

// component to be rendered

 <img className='review-list-photo' src={singleReview.review_img_url} alt={singleReview.title} />


// inside html element in dev tools

<img class="review-list-photo" src="https://cdn1.parksmedia.wdprapps.disney.com/media/blog/wp-content/uploads/2010/12/dbg002090SMALL.jpg" alt="k">

Anyone know why this is?

screenshot of posted review inside chrome dev tools:
screenshot of posted review inside chrome dev tools

about 4 years ago · Juan Pablo Isaza
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