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

200
Views
Obteniendo error: no se puede leer la propiedad 'ruta' de undefined

Tengo el requisito de pasar List<Map<String, String>> como parámetro para REST GET API. Necesito saber cómo se puede pasar esto desde Postman o una herramienta similar.

Traté de configurarlo como BODY para una API GET, me está dando errores.

 var http = require('http'); var formidable = require('formidable'); var fs = require('fs'); http.createServer(function(req, res) { if (req.url == '/fileupload') { var form = new formidable.IncomingForm(); form.parse(req, function(err, fields, files) { var oldpath = files.filetoupload.path; var newpath = 'D:/nodejs/images/' + files.filetoupload.name; fs.rename(oldpath, newpath, function(err) { if (err) throw err; res.write('File uploaded and moved!'); res.end(); }); }); } else { res.writeHead(200, { 'Content-Type': 'text/html' }); res.write('<form action="fileupload" method="post" enctype="multipart/form-data">'); res.write('<input type="file" name="filetoupload"><br>'); res.write('<input type="submit">'); res.write('</form>'); return res.end(); } }).listen(3000);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Una carga útil dentro de un mensaje de solicitud GET no tiene una semántica definida; enviar un cuerpo de carga útil en una solicitud GET puede hacer que algunas implementaciones existentes rechacen la solicitud. Sugiero usar el método POST en lugar de GET

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