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

146
Views
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
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!