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

118
Views
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
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!