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

Detect failure to launch #85

Closed
KCErb opened this issue Feb 26, 2019 · 2 comments
Closed

Detect failure to launch #85

KCErb opened this issue Feb 26, 2019 · 2 comments

Comments

@KCErb
Copy link

KCErb commented Feb 26, 2019

Short version of question:
This is probably answered by / strongly related to #13. But I'm wondering about the case where a user doesn't have a default download location so Chrome brings up a dialog. If they close / cancel that dialog, is there any way to tell?

Long version of question:
To be clear, this is distinct from #13 in that I'm not too worried about them canceling a stream to a file. I can live with that, but I am worried about my app thinking it established a connection when it never did. That could be confusing for a new user who doesn't realize that this is a required step since I have no way for my form's disabled state to trigger off of this write stream getting initialized properly.

@jimmywarting
Copy link
Owner

jimmywarting commented Feb 28, 2019

The question seems to be about discarding the save dialog and not the cancel event...

Don't think it will ever be possible, you see: the browser starts downloading the files even before the save dialog appear. Also while you are figuring out where you want to save the file, browser will continue to download the content in the background into a buffer/memory

However it might be possible later with the native-filesystem where you can ask for a filesystem entry where you want to save the file. basically you ask where to save it first then you write a stream of data

dose it answer your question? it seems more like a question then a issue, so maybe close it if you want

@KCErb
Copy link
Author

KCErb commented Feb 28, 2019

Yes it does answer my question, thank you.

@KCErb KCErb closed this as completed Feb 28, 2019
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