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

144
Vistas
Save my files to the location of my choice in javascript

I would like to specify when downloading files the path or location where my files will be stored and not the default location. How should I do it?

function CreateFolder(fldr)
{
  var path = fso.BuildPath("/home/wfbjzar/", fldr);

  if (! fso.FolderExists(path))
    fso.CreateFolder(path);
}

downloadBtn.addEventListener('click', () => {
  const downloadLink = document.getElementById('downloadLink');
  const children = Array.from(outputDiv.children)
  let str = ''
  console.log(fileInput.files)
  children.forEach((i, index) => {
      // str += `\n` + i.innerText

      const url = new Blob([i.innerText], { type: 'text/plain' })
      const file = new Blob([url], { type: 'text/plain' });
      downloadLink.href = URL.createObjectURL(file);
      downloadLink.download = fileInput.files[index].name;
      downloadLink.click();
      setTimeout(function(){
                    window.location.href = 'index.html';
                 }, 1500);
  });

});
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