What exactly do you mean by "show the default browser download progress" and "it shows in browser's left bottom side"?
Firefox shows a popup in the top right corner while most Chromium based browsers show it in a bar at the bottom.
When the download starts it should show the default browser download progress but in my code when the whole file is downloaded it shows in browser's left bottom side
``` getFileAsAttachment(fileID: string) { let requestHeader: HttpHeaders = new HttpHeaders({ 'Authorization': 'Bearer ' + JSON.parse(localStorage.getItem('auth'))?.access_token, 'Content-Disposition': 'attachment' })
this.downloadFile(fileID, requestHeader)
.subscribe(
(res: any) => {
let fileName = res.headers.get('content-disposition').split(';')[1].split('filename')[1]
.split('=')[1].replaceAll('"', '');
const blob = new Blob([res.body], { type: res.type });
saveAs(blob, fileName);
});
}
downloadFile(fileID: any, header: HttpHeaders): Observable<HttpResponse<Blob>> {
return this.http.get<Blob>(${this.fileDownloadApi}${fileID}, {
headers: header,
observe: 'response',
responseType: 'blob' as 'json'
})
}
```
Please or to participate in this conversation.