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

281
Vistas
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 Respuestas
Responde la pregunta

0

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

about 4 years ago · Juan Pablo Isaza Denunciar
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