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

319
Views
Multer - Error con stream.pipeline() : el argumento del fragmento no es válido

Tengo un problema con stream.pipeline()

 await pipeline( req.file.buffer, fs.createWriteStream( `${__dirname}/../client/public/uploads/profil/${fileName}` ) )

Cuando hago esto, tengo un error: TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received type number (255)

req.archivo:

 { fieldname: 'file', originalname: 'test.jpeg', encoding: '7bit', mimetype: 'image/jpeg', buffer: <Buffer ff d8 ff e1 00 16 45 78 69 66 00 00 4d 4d 00 2a 00 00 00 08 00 00 00 00 00 00 ff db 00 43 00 05 03 04 04 04 03 05 04 04 04 05 05 05 06 07 0c 08 07 07 ... 195029 more bytes>, size: 195079 }

¡Así que por favor si me pueden ayudar! Lo siento por mi inglés, no tengo un buen inglés..

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!