Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save file without extension #29

Open
gns088 opened this issue Jan 7, 2021 · 1 comment
Open

Save file without extension #29

gns088 opened this issue Jan 7, 2021 · 1 comment

Comments

@gns088
Copy link

gns088 commented Jan 7, 2021

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.

@cipchk
Copy link
Owner

cipchk commented Jan 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants