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

saveAs fails on chrome with no error #778

Open
theahura opened this issue Nov 10, 2022 · 2 comments · May be fixed by #779
Open

saveAs fails on chrome with no error #778

theahura opened this issue Nov 10, 2022 · 2 comments · May be fixed by #779

Comments

@theahura
Copy link

theahura commented Nov 10, 2022

Thanks for this library.

I'm getting silent failures where, when I try to download using saveAs, it fails without any error or log -- a download simply never appears.

I'm using Chrome: Version 107.0.5304.87 (Official Build) (64-bit), on Ubuntu 20.02.

Any idea whats going on?

Example code:

import {saveAs} from 'file-saver'

const blob = new Blob(['helloworld'], {
  type: "application/json",
});

saveAs(blob, 'test')
@theahura
Copy link
Author

Update: it looks like it fails silently if it is running in a WebWorker, which is where our code was running. Is there a way to add a warning if saveAs is used in a worker?

@Wooyme
Copy link

Wooyme commented Dec 11, 2022

I faced the same problem,but not in a WebWorker when using Chrome 108.

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

Successfully merging a pull request may close this issue.

2 participants