Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

111
Vistas
NodeJS Dynamic Files downloads

im new to programming and i have this app that takes input from the user in a form and generates a pdf to download.

However the issue im experimenting is if 2 or more users do the process at the same time the download file for all users becomes the last file generated.

Thank you very much in advanced for helping.

var zip = new AdmZip();
        var fs=require('fs-extra');
        let arr = ['./Facturas/' + pdfFileName + '/'  + pdfFileName + '.pdf', './Facturas/' + pdfFileName + '/' + xmlFileName + '.xml']
        for(let i = 0 ;i<arr.length ;i++){
          zip.addLocalFile(`./${arr[i]}`); //local path
        }
        zip.writeZip('./Facturas/' + pdfFileName + '.zip');


        var file = '../Facturas/' + putopdf + '.zip';
        res.sendFile(file); // Set disposition and send
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda