Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
uzenith360 committed Dec 15, 2023
1 parent b477570 commit 5ae4e21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class FileUploadService {
'ngsw-bypass': "true",
// This Content-Disposition is to force the browser to download file
// rather than preview it when the download button is clicked
'Content-Disposition': `attachment; filename=${/*file.name ?? */pathname.substring(pathname.lastIndexOf('/') + 1)}`,
'Content-Disposition': `attachment; filename=${file.name ?? pathname.substring(pathname.lastIndexOf('/') + 1)}`,
},
observe: 'events',
reportProgress: !this.config.ignoreProgressReports,
Expand Down

0 comments on commit 5ae4e21

Please sign in to comment.