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

279
Views
how to enable progress of downloading file using JavaScript or angular?

when i'm trying to download a file entire file is getting downloaded at once not able to see progress

below is the expected output not able to see progress like in this image

i tried below 2 approaches but didn't help

Approach 1

tried using file saver

FileSaver.saveAs(blob, "hello world.txt");

Approach 2 using pure javascript

  downloadFileDirect(blob){
      var a = document.createElement('a');
    var bb = new Blob([blob], { type: 'text/plain' });
    a.download = 'Upload.xlsx';
    a.href = window.URL.createObjectURL(bb);
    a.textContent = 'Download ready';
    a.click();    
  }

in both the approaches file is getting downloaded at once

in backend its springboot

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It's the browser that handles the download progress not Angular.

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!