ngx-filesaver icon indicating copy to clipboard operation
ngx-filesaver copied to clipboard

Save file without extension

Open gns088 opened this issue 4 years ago • 1 comments

I tried to download files without extension using the service but it is appending .txt extension automatically. I also tried to download files with .cred extension but when download starts it showing .txt extension.

File download without extenstion this.fileSaverService.save(file, 'credentials');

File download with extenstion this.fileSaverService.save(file, 'credentials', 'cred');

I also tried passing type in a blob but still, the file is saving with .txt extension.

gns088 avatar Jan 07 '21 08:01 gns088

Dose she thing happen in other browser? We do not add any extension.

  • https://github.com/eligrey/FileSaver.js/issues/597

cipchk avatar Jan 07 '21 08:01 cipchk