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

242
Views
How to upload images one by one to server in react

I want to upload 4 images one by one to server, in response i will get 4 urls and save all urls in a state in react

const multiStatement= async(e) => {
     const files = e.target.files;
     const fd = new FormData()

    files.map(img=>{
     fd.append(`file`, img)
    const res = axios.post(url,fd)

    console.log( res.data.url)//save this url 
   })
}
<input type="file" id="file" multiple name="file" onChange={multiStatement} />
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!