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

222
Views
¿Cómo solucionar este "AxiosError" en mi aplicación React?

Estoy tratando de cargar una nueva imagen en mi aplicación de reacción, pero cuando envío la solicitud, el resultado es este error:

 error Object { message: "Unsupported source URL: undefined" }

Mi fragmento de código es este:

 const handleCreate = async () => { const data = new FormData(); data.append("file", file); data.append("upload_preset", "uploads"); try { const uploadRes = await axios.post( "https://api.cloudinary.com/v1_1/CLOUDNAME/image/upload", data ); const { url } = uploadRes.data; const newProduct = { title, desc, prices, extraOptions, img: url, }; await axios.post("http://localhost:3000/api/products", newProduct); setClose(true); } catch (err) { console.log(err); } };
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!