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

171
Views
Selector de imágenes HTTP 500 spring web expo

Estoy tratando de cargar un archivo en reaccionar nativo usando axios a un backend de servicio de primavera.

 const sf5 = async () => { let fd = new FormData(); fd.append("file", imgimg.uri) const eeefile = await instance.post('/uploadfile', { body: fd }, {headers:{ "Content-Type": "multipart/form-data" }}).then(function (response) { //console.log('~~~~~~~~~~~~~~~' + random_val) //console.log(response); }); }

Sin embargo, Spring Framework rechaza la solicitud diciendo

 [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Current request is not a multipart request]

Intenté colocar un punto de interrupción en la clase de aplicación de primavera. Sin embargo, la solicitud ni siquiera llegó allí.

Puedo cargar el archivo desde el navegador a través de XHR.

Cualquier indicador sería apreciada.

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!